onEvent property

set onEvent (void func(Event))

Receives any event that is emitted by the player.

Implementation

set onEvent(void Function(Event) func);