captureImage method

Future<Image> captureImage({
  1. bool blockText = false,
  2. DeviceInfo? device,
  3. Orientation orientation = Orientation.portrait,
  4. 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:

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,
  );
}