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