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