I'm working on a Flutter project and I'm trying to understand how to properly manage memory. Specifically, I want to know how I can remove an instance from heap memory in Dart.
I understand that Dart has a garbage collector that automatically manages memory, but there are cases where I want to ensure that certain objects are immediately disposed of and removed from memory when they are no longer needed.
Is there a way to explicitly remove an instance from heap memory in Flutter Dart? If not, what are the best practices for ensuring that objects are properly disposed of and memory is efficiently managed?
Any code examples or references to official documentation would be greatly appreciated!