play method

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

Implementation

@override
Future<void> play(int viewId) async {
  try {
    var methodChannel = MethodChannel('${channelPrefix}_$viewId');
    await methodChannel.invokeMethod<void>('play');
  } on PlatformException catch (e) {
    debugPrint('${e.code}: ${e.message}');
  }
}