dispose method

  1. @override
void dispose()

Called when this object is removed

Implementation

@override
void dispose() {
  _cleanupCallback = null;

  _unwatchInstanceAttached();
  _unwatchDependencies();

  super.dispose();
}