off method

void off(
  1. EventListener<P> listener
)

Remove listener from the current event

for more information check docs for Event.removeListener

Implementation

void off(EventListener<P> listener) => event.removeListener(listener);