removeListener method
Removes the specified listener.
Implementation
bool removeListener(StateListener listener) {
bool removed = _listenersBefore.remove(listener);
if (_listenersAfter.remove(listener)) {
removed = true;
}
return removed;
}