instance property

LocaleSettingsPlatform get instance

The default instance of LocaleSettingsPlatform to use.

Defaults to MethodChannelLocaleSettings.

Implementation

static LocaleSettingsPlatform get instance => _instance;
set instance (LocaleSettingsPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends LocaleSettingsPlatform when they register themselves.

Implementation

static set instance(final LocaleSettingsPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}