Listener.Default constructor Null safety
- String eventName,
- Object? context,
- EventCallback callback
Constructor for Listener.
This will take four arguments.
eventName, callback are mandatory.
context
is optional.
Implementation
Listener.Default(this.eventName, this.context, this.callback);