instance property

AppLangPlatform get instance

The default instance of AppLangPlatform to use.

Defaults to MethodChannelAppLang.

Implementation

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

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

Implementation

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