Event constructor
Event(
- String name
Creates a new event and assigns its name.
- name the name of the event that is to be created. @throws an Error if the name is null.
Implementation
Event(String name)
: _name = name,
_listeners = [];