EventMethod constructor
EventMethod({
- required String eventName,
- required Future<
void> handler(- dynamic payload
- EventPriority priority = EventPriority.normal,
- bool once = false,
Creates a new EventMethod instance.
The eventName and handler arguments are required.
The priority argument defaults to EventPriority.normal.
The once argument defaults to false.
Implementation
EventMethod({
required this.eventName,
required this.handler,
this.priority = EventPriority.normal,
this.once = false,
});