pause method

  1. @override
void pause()
override

Pauses the player.

Implementation

@override
void pause() async {
  try {
    await _methodChannel.invokeMethod("pause");
  } catch (e) {
    throw Exception("Unable to pause the player [Pause]");
  }
}