getPlatformLocale method

  1. @override
Future<String> getPlatformLocale()
override

Returns a String containing the language locale.

Implementation

@override
Future<String> getPlatformLocale() async {
  return web.window.navigator.language;
}