instance property

GetInfoPlatform get instance

The default instance of GetInfoPlatform to use.

Defaults to MethodChannelGetInfo.

Implementation

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

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

Implementation

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