@override Future<void> stopCamera() async { try { await methodChannel.invokeMethod('stopCamera'); } on PlatformException catch (e) { throw Exception("Failed to stop camera: '${e.message}'"); } }