toggleRecording method

Future<void> toggleRecording()

Implementation

Future<void> toggleRecording() async {
  try {
    await _channel.invokeMethod<dynamic>('toggleRecording');
  } on PlatformException catch (e) {
    debugPrint('${e.code}: ${e.message}');
  }
}