toDropEventType method
Convert to a drop event type.
Implementation
DropEventType toDropEventType() {
switch (this) {
case SDL_EventType.SDL_DROPFILE:
return DropEventType.file;
case SDL_EventType.SDL_DROPTEXT:
return DropEventType.text;
case SDL_EventType.SDL_DROPBEGIN:
return DropEventType.begin;
case SDL_EventType.SDL_DROPCOMPLETE:
return DropEventType.complete;
default:
throw SdlError(this, 'Invalid drop event type.');
}
}