instance property

UpgradeUtilPlatform get instance

The default instance of UpgradeUtilPlatform to use.

Defaults to MethodChannelUpgradeUtil.

Implementation

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

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

Implementation

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