off method

Evented off(
  1. String type, [
  2. Function? fn,
  3. dynamic context
])

Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.

Implementation

external Evented off(String type, [Function? fn, dynamic context]);