instance property

AnsaFlutterSdkPlatform get instance

The default instance of AnsaFlutterSdkPlatform to use.

Defaults to MethodChannelAnsaFlutterSdk.

Implementation

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

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

Implementation

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