FrameCaptureService class abstract interface

Captures the pixels of one already-pumped frame as a RawFrame.

The render loop owns the clock: it seeks the controller, pumps the tree, and only then asks this service for the pixels. Implementations therefore never advance time, never await anything frame-dependent, and capture the same pixels for an identical pumped tree, which is what the frame cache and the golden harness rely on.

Implementers

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>
Reads the current pixels of the boundary under boundaryKey at exactly widthxheight, tagged with frameIndex.
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