findEvent method
Searches for an event by its name in this command set.
eventName
the name of the event to search for. Returns the event, whose name matches the provided name. SeeIEvent
Implementation
/// - [eventName] the name of the event to search for.
/// Returns the event, whose name matches the provided name.
/// See [IEvent]
IEvent? findEvent(String eventName) {
return _eventsByName[eventName];
}