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