isDisposed property
bool
get
isDisposed
Whether dispose has been called.
Once true, notifyListeners is a no-op, addStrongRefListener asserts in debug, and the listener list is cleared. Subclasses MUST consult this getter rather than maintaining their own disposal flag.
Implementation
bool get isDisposed => _isDisposed;