onEnded method

void onEnded(
  1. void callback(
    1. Event
    )
)

Implementation

void onEnded(void Function(Event) callback) {
  if (media != null) {
    media?.onEnded.listen(callback);
  }
}