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