instance property

RegionSettingsPlatform get instance

The default instance of RegionSettingsPlatform to use.

Defaults to MethodChannelRegionSettings.

Implementation

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

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

Implementation

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