onEventCallback method
Stores the callback than runs when a new event is received.
Implementation
void onEventCallback(String event, dynamic data) =>
this.listeners[event] != null ? this.listeners[event]!(data) : null;
Stores the callback than runs when a new event is received.
void onEventCallback(String event, dynamic data) =>
this.listeners[event] != null ? this.listeners[event]!(data) : null;