removeListener method

void removeListener(
  1. ScrollNotificationCallback listener
)

Remove the specified ScrollNotificationCallback.

Implementation

void removeListener(ScrollNotificationCallback listener) {
  assert(_debugAssertNotDisposed());
  for (final _ListenerEntry entry in _listeners!) {
    if (entry.listener == listener) {
      entry.unlink();
      return;
    }
  }
}