pause method

Future<void> pause()

Implementation

Future<void> pause() async {
  await _nativeSetup.future;
  if (isPlayable()) {
    FijkLog.i("$this invoke pause");
    await _channel.invokeMethod("pause");
  } else {
    FijkLog.e("$this invoke pause invalid state:$state");
    return Future.error(StateError("call pause on invalid state $state"));
  }
}