endSession method

  1. @override
Future<void> endSession()
override

Ends a WebXR session.

Implementation

@override
Future<void> endSession() async {
  try {
    await xrController.endSession();
  } catch (e) {
    throw Exception('Failed to end session');
  }
}