fire method

Evented fire(
  1. String type, [
  2. dynamic data,
  3. bool? propagate
])

Fires an event of the specified type. You can optionally provide an data object — the first argument of the listener function will contain its properties. The event can optionally be propagated to event parents.

Implementation

external Evented fire(String type, [dynamic data, bool? propagate]);