Event constructor

Event({
  1. required EventType type,
  2. required String name,
})

Implementation

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