release method

Future<void> release()

Releases the resources associated with this media player.

The resources are going to be fetched or buffered again as soon as you call resume or change the source.

Implementation

Future<void> release() async {
  await stop();
  await _platform.release(playerId);
  // Stop state already set in stop()
  _source = null;
}