setLocale method

Future<void> setLocale(
  1. Locale locale
)

Sets the custom locale for use instead of system one.

Implementation

Future<void> setLocale(Locale locale) async {
  await _channel.invokeMethod<void>('display:setLocale', locale.toString());
}