RepaintBoundaryCaptureService class final

The real FrameCaptureService: rasterizes the RepaintBoundary under the given key via toImage(pixelRatio: 1.0) and reads back raw RGBA bytes.

The pixel chain is fixed end-to-end: the host sets the view's physical size to the target resolution at device pixel ratio 1.0, so pixelRatio: 1.0 here yields exactly widthxheight pixels — any other size is a configuration error and throws a FluvieRenderException naming both sizes.

In widget tests, toImage/toByteData complete on real engine callbacks that fake-async never drives — run every capture call inside tester.runAsync (see test/rendering/capture/to_image_spike_test.dart for the mechanics).

Implemented types

Constructors

RepaintBoundaryCaptureService()
Creates the capture service. Stateless and const: all state lives in the tree under the boundary key.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

capture({required GlobalKey<State<StatefulWidget>> boundaryKey, required int frameIndex, required int width, required int height}) Future<RawFrame>
Captures the boundary's pixels for frameIndex; the toImage() call relies on the implicit pixelRatio default of 1.0, which is load-bearing for the exact-dimension contract pinned by the spike and service tests (the fatal avoid_redundant_argument_values lint forbids spelling it).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited