locales method

  1. @override
Future<List> locales()
override

returns the list of speech locales available on the device.

Implementation

@override
Future<List<dynamic>> locales() async {
  return await _channel.invokeMethod<List<dynamic>>('locales') ?? [];
}