PdfRenderCommand class sealed
A flattened, replayable record of one PdfDevice call.
The interpreter's output interface (PdfDevice) is 13 callbacks whose
arguments are almost entirely pure-Dart value types from pdf_graphics
(PdfPath, PdfColor, PdfMatrix, PdfStroke, PdfGradient,
PdfMesh, PdfTextRun, …). A RecordingPdfDevice captures each call
verbatim as one of these records; replayCommands feeds them straight
back into another PdfDevice (the Flutter canvas device, a test
recorder, …). The interpreter, the device interface, and the canvas
device are unchanged — interpretation (the expensive parse + walk) and
painting are merely decoupled, which is the prerequisite for running the
interpret off the UI thread.
The command list is a flat sequence; the nesting of transparency groups
and q/Q is implicit in the open/close pairing, exactly as the canvas
device already tracks it. The one callback that carries control flow —
PdfDevice.endSoftMasked's drawMask closure — stores the mask group's
own commands inline (PdfEndSoftMaskedCommand.maskCommands); replay
reconstructs the closure from them.
- 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
-
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