instance property

The default instance of CupertinoNativePlatform to use.

Defaults to MethodChannelCupertinoNative.

Implementation

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

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

Implementation

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