play method

  1. @override
Future<void> play()
override

Implementation

@override
Future<void> play() async {
  if (_disposed) throw StateError('This playback session was disposed.');

  final error = nextPlayError;
  if (error != null) {
    nextPlayError = null;
    throw error;
  }

  playCount++;
  _playing = true;
}