shutdown method

Future<void> shutdown()

Safely shutdown the camera

Implementation

Future<void> shutdown() async {
  try {
    await _channel?.invokeMethod("shutdown");
  } catch (e) {
    print("Error during controlled camera shutdown: $e");
  }
}