instance property

YocoFlutterSdkPlatform get instance

The default instance of YocoFlutterSdkPlatform to use.

Defaults to MethodChannelYocoFlutterSdk.

Implementation

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

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

Implementation

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