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