locales method
returns the list of speech locales available on the device.
Implementation
@override
Future<List<dynamic>> locales() async {
var availableLocales = [];
var lang = _webSpeech?.lang;
if (null != lang && lang.isNotEmpty) {
lang = lang.replaceAll(':', '_');
availableLocales.add('$lang:$lang');
}
return availableLocales;
}