capture method
Future<CapturedData?>
capture({
- required ScreenshotMode mode,
- bool includeCursor = false,
- int? displayId,
Capture a screenshot.
mode: Screenshot capture mode (screen or region)includeCursor: Whether to include the cursor in the screenshotdisplayId: Optional display ID for multi-monitor setups (null = primary display)
Returns CapturedData with image dimensions and PNG-encoded bytes, or null if the operation was cancelled by the user.
Throws ScreenshotException if the operation fails.
Implementation
Future<CapturedData?> capture({
required ScreenshotMode mode,
bool includeCursor = false,
int? displayId,
}) {
throw UnimplementedError('capture() has not been implemented.');
}