toFlashOperation method
Convert from a SDL_FlashOperation
member.
Implementation
FlashOperation toFlashOperation() {
switch (this) {
case SDL_FlashOperation.SDL_FLASH_CANCEL:
return FlashOperation.flashCancel;
case SDL_FlashOperation.SDL_FLASH_BRIEFLY:
return FlashOperation.flashBriefly;
case SDL_FlashOperation.SDL_FLASH_UNTIL_FOCUSED:
return FlashOperation.flashUntilFocused;
default:
throw SdlError(
this,
'Unrecognised `SDL_FlashOperation` member.',
);
}
}