Event constructor

Event({
  1. required String name,
  2. Map<String, dynamic>? payload,
})

Implementation

Event({required this.name, this.payload});