instance property

FlutterWebXrPlatform get instance

Returns the current instance of the FlutterWebXrPlatform.

By default, it uses the MethodChannelFlutterWebXr.

Implementation

static FlutterWebXrPlatform get instance => _instance;
set instance (FlutterWebXrPlatform instance)

Sets the instance for the FlutterWebXrPlatform.

Platform-specific implementations should set this with their own class that extends FlutterWebXrPlatform when they register themselves.

Implementation

static set instance(FlutterWebXrPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}