getSupportedLocales method
An implementation of LivespeechtotextPlatform.getSupportedLocales
Implementation
@override
Future<Map<String, String>?> getSupportedLocales() async {
final output = await methodChannel.invokeMethod('getSupportedLocales');
var sample = output as Map<dynamic, dynamic>;
Map<String, String> mapping = {};
for (var item in sample.entries) {
mapping.addAll({'${item.key}': '${item.value}'});
}
return mapping;
}