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