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