throwInvalidEvent method

Never throwInvalidEvent(
  1. EventType type
)

Throw an error to show that an event was unhandled.

Implementation

Never throwInvalidEvent(final EventType type) =>
    throw SdlError(type.toInt(), 'Invalid event type $type.');