dispose method
void
dispose()
Removes all listeners and clears the cancellation callback.
Implementation
void dispose() {
listeners.clear();
_onCancel = null;
}
Removes all listeners and clears the cancellation callback.
void dispose() {
listeners.clear();
_onCancel = null;
}