captureImage method

Future<String?> captureImage()

Capture image from current video frame

Returns path to captured image file, or null if failed

Implementation

Future<String?> captureImage() async {
  try {
    final String? result = await _enhancedChannel.invokeMethod('captureImage');
    return result;
  } catch (e) {
    ezvizLog('Error capturing image: $e');
    return null;
  }
}