removeParseListener method

void removeParseListener(
  1. ParseTreeListener? listener
)
inherited

Remove listener from the list of parse listeners.

If [listener] is null or has not been added as a parse listener, this method does nothing.

@see #addParseListener

@param listener the listener to remove

Implementation

void removeParseListener(ParseTreeListener? listener) {
  if (_parseListeners != null) {
    if (_parseListeners!.remove(listener)) {
      if (_parseListeners!.isEmpty) {
        _parseListeners = null;
      }
    }
  }
}