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