dispose method

  1. @mustCallSuper
Future<void> dispose()

Implementation

@mustCallSuper
Future<void> dispose() async {
  await Future.wait(
    [
      playingController.close(),
      positionController.close(),
      widthController.close(),
      heightController.close(),
      subtitleController.close(),
      bufferingController.close(),
      bufferController.close(),
      durationController.close(),
      // playlistController.close(),
      volumeController.close(),
      rateController.close(),
      completedController.close(),
    ],
  );
}