onEvent property

void onEvent=(void func(Event))

Receives any event that is emitted by the player.

Implementation

set onEvent(void Function(Event) func);