Listener.Default constructor Null safety

Listener.Default(
  1. String eventName,
  2. Object? context,
  3. 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);