instance property

I18nFlutterPlatform get instance

The default instance of I18nFlutterPlatform to use.

Defaults to MethodChannelI18nFlutter.

Implementation

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

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

Implementation

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