dispose method
void
dispose()
Calls the dispose() method and all atoms and molecules and then removes them. Think of this as a destructor that you have to call.
Implementation
void dispose() {
_atoms.entries.forEach((element) {
element.value.dispose();
});
_molecules.entries.forEach((element) {
element.value.dispose();
});
_atoms.clear();
_molecules.clear();
}