play method

Future<void> play()

Implementation

Future<void> play() async {
  try {
    _activeController = this;
    await _channel.invokeMethod('play');
    _onPlay?.call();
  } catch (e) {
    _onError?.call('Failed to play: $e');
  }
}