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