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