Event constructor

Event({
  1. required String type,
  2. dynamic data,
})

Implementation

Event({required this.type, this.data});