captureImage method
Future<Image>
captureImage({
- bool blockText = false,
- DeviceInfo? device,
- Orientation orientation = Orientation.portrait,
- bool includeDeviceFrame = false,
Captures this finder's closest RepaintBoundary into an image.
Will throw if this finder doesn't evaluate to exactly one element.
See also:
- CaptureImage to capture an element that contains a RepaintBoundary.
Implementation
Future<ui.Image> captureImage({
bool blockText = false,
DeviceInfo? device,
Orientation orientation = Orientation.portrait,
bool includeDeviceFrame = false,
}) {
return evaluate().single.captureImage(
blockText: blockText,
device: device,
orientation: orientation,
includeDeviceFrame: includeDeviceFrame,
);
}