showArScreen method

  1. @override
Future<void> showArScreen(
  1. String modelPath, {
  2. double scale = 0.001,
})
override

Implementation

@override
Future<void> showArScreen(String modelPath, {double scale = 0.001}) async {
  try {
    await MethodChannel('ar_plugin').invokeMethod('showArScreen', {
      'modelName': modelPath,
      'scale': scale,
    });
  } on PlatformException catch (e) {
    print("Error calling showArScreen: ${e.message}");
  }
}