onCaptureScreenshot property

Future<Uint8List?> Function()? onCaptureScreenshot
final

Optional callback for full-screen capture.

Returns PNG bytes or null on cancel. When provided, a "Capture Screen" option appears alongside the gallery picker.

Implementation

final Future<Uint8List?> Function()? onCaptureScreenshot;