trigger method

dynamic trigger(
  1. String event,
  2. dynamic data
)

Triggers an event

Implementation

external trigger(String event, dynamic data);