capturePhoto method

Future<Uint8List?> capturePhoto({
  1. bool withOverlays = true,
})

Captures a still photo from the live preview.

When withOverlays is true, the returned JPEG includes the rendered bounding-box overlays composited over the camera frame.

Implementation

Future<Uint8List?> capturePhoto({bool withOverlays = true}) =>
    _invoke<Uint8List>('capturePhoto', {'withOverlays': withOverlays});