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