instance property
MagicSdkPlatform
get
instance
The default instance of MagicSdkPlatform to use.
Defaults to MethodChannelMagicSdk.
Implementation
static MagicSdkPlatform get instance => _instance;
set
instance
(MagicSdkPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends MagicSdkPlatform when they register themselves.
Implementation
static set instance(MagicSdkPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}