dispose method

  1. @override
void dispose()
override

Release the resources used by this object. The object is no longer usable after this method is called.

The most recently returned TickerFuture, if any, is marked as having been canceled, meaning the future never completes and its TickerFuture.orCancel derivative future completes with a TickerCanceled error.

Implementation

@override
void dispose() {
  // auto dispose _videoItem when set null
  videoItem = null;
  _isDisposed = true;
  super.dispose();
}