Notification constructor

Notification(
  1. String event, [
  2. Map<String, Object>? params
])

Initialize a newly created Notification to have the given event name. If params is provided, it will be used as the params; otherwise no params will be used.

Implementation

Notification(this.event, [this.params]);