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