removeOnLastListenerRemovedCallback method

void removeOnLastListenerRemovedCallback(
  1. VoidCallback callback
)

Removes a callback previously supplied to addOnLastListenerRemovedCallback.

Implementation

void removeOnLastListenerRemovedCallback(VoidCallback callback) {
  _checkDisposed();
  _onLastListenerRemovedCallbacks.remove(callback);
}