onPause method

void onPause(
  1. void callback(
    1. Event
    )
)

Implementation

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