Generates a hash code based on the event name.
This is useful for maintaining efficiency in collections that are based on hash tables, like sets or maps.
@override int get hashCode { return eventName.hashCode; }