getVoice method

  1. @override
Future<List<String>?> getVoice()
override

Implementation

@override
Future<List<String>?> getVoice() async {
  List<dynamic> voices = await _channel.invokeMethod('getVoices');
  return voices.map((dynamic e) => e as String).toList();
}