removeListener method

bool removeListener(
  1. StateListener listener
)
inherited

Removes the specified listener.

Implementation

bool removeListener(StateListener listener) {
  bool removed = _listenersBefore.remove(listener);
  if (_listenersAfter.remove(listener)) {
    removed = true;
  }
  return removed;
}