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