dispose method

void dispose()

Implementation

void dispose() async {
  if (isCreated == false) return;
  isCreated = false;
  progressCallbacks.clear();
  focalCallbacks.clear();
  // if (_subscription != null) _subscription.cancel();
  AppDart().rmvListener(progressListener);
  await app_player_channel.invokeMethod("app_player_stop", this.textureId);
  await app_player_channel.invokeMethod("app_player_destroy", this.textureId);
}