dispose method
override
Cancels the load if it is still running, then discards this notifier.
Implementation
@override
void dispose() {
if (!_completer.isCompleted) {
value = value.copyWith(done: true, cancelled: true);
_completer.complete(value);
}
_disposed = true;
super.dispose();
}