dispose method
- @mustCallSuper
Should dispose this using Disposable.disposeObject.
In public methods, to check whether this is disposed, use
Disposable.checkObjectDisposed with this as first argument.
For better release builds use assert:
assert(Disposable.checkDisposed(this, 'myLovelyMethod'))
Implementation
@mustCallSuper
void dispose() {
Disposable.disposeObject(this);
}