onEvent method
- Event event
inherited
Takes an Event and emits it to the corresponding event listener.
Implementation
void onEvent(Event event) {
if (event is FullscreenEnterEvent) {
onFullscreenEnter?.call(event);
} else if (event is FullscreenExitEvent) {
onFullscreenExit?.call(event);
} else if (event is PictureInPictureEnterEvent) {
onPictureInPictureEnter?.call(event);
} else if (event is PictureInPictureEnteredEvent) {
onPictureInPictureEntered?.call(event);
} else if (event is PictureInPictureExitEvent) {
onPictureInPictureExit?.call(event);
} else if (event is PictureInPictureExitedEvent) {
onPictureInPictureExited?.call(event);
}
}