instance property

The default instance of FlutterLocalizationPlatform to use.

Defaults to MethodChannelFlutterLocalization.

Implementation

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

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

Implementation

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