pause method

Future<bool> pause()

Implementation

Future<bool> pause() async {
  if (videoStatus == VideoStatus.PAUSE) return true;
  if (videoStatus != VideoStatus.PLAY) return false;
  var result = await app_player_channel.invokeMethod(
      "app_player_pause", this.textureId);
  if (result == true) {
    this.videoStatus = VideoStatus.PAUSE;
  }
  return result;
}