MethodChannelFlutterWebXr class

An implementation of FlutterWebXrPlatform that uses method channels.

Inheritance

Constructors

MethodChannelFlutterWebXr()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCone({required double radius, required double height, List<MeshBasicMaterial>? materials}) → Mesh
Creates a cone using the given radius, height, and materials.
inherited
createCube({required double sideLength, List<MeshBasicMaterial>? materials}) → Mesh
Creates a cube with the specified side length and materials.
inherited
createHeart({required int color}) → Mesh
Generates a 3D heart shape with the specified color.
inherited
createObject(dynamic geometry, [List<MeshBasicMaterial>? materials, Map<String, dynamic>? options]) → Mesh
Creates a 3D object using the provided geometry and materials.
inherited
endSession() Future<void>
Ends a WebXR session.
inherited
getBatteryLevel() Future<double>
Retrieves the battery level of the device.
inherited
getPlatformVersion() String?
Returns the platform version.
inherited
isWebXrAvailable() bool
Checks if WebXR is available on the platform.
inherited
jsPrint(dynamic message) → void
Prints a message to the JavaScript console.
inherited
loadGLTFModel(String path) Future<void>
Loads a 3D model in GLTF format from the provided path.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openWindow(String url) → void
Opens a new browser window or tab with the specified URL.
inherited
startSession() Future<void>
Starts a WebXR session.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited