findSystemLocale function

Future<String> findSystemLocale()

Default implementation of findSystemLocale, which throws if called. Platforms with the 'io' and 'html' libraries should use 'intl_standalone.dart' and 'intl_browser.dart' respectively. Find the system locale, accessed via the appropriate system APIs, and set it as the default for internationalization operations in the Intl.systemLocale variable.

Implementation

/// Find the system locale, accessed via the appropriate system APIs, and
/// set it as the default for internationalization operations in
/// the [Intl.systemLocale] variable.
Future<String> findSystemLocale() {
  throw UnsupportedError(
      'intl.findSystemLocale is not implemented on this platform.');
}