RenderOptions class

The wire form of the export policies: plain data, serializable, compiled by the guest to its per-run callback form.

Available extensions

Constructors

RenderOptions({TextPolicy text = TextPolicy.embedFont, Map<String, TextPolicy> textByFamily = const {}, UnsupportedPolicy unsupported = UnsupportedPolicy.rasterize, double rasterScale = 3})
const
RenderOptions.fromJson(Map<String, Object?> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
rasterScale → double
Pixel ratio for raster patches placed by UnsupportedPolicy.rasterize.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → TextPolicy
final
textByFamily → Map<String, TextPolicy>
Per-family override — the real per-run need is icons vs body text.
final
unsupported → UnsupportedPolicy
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
textFor(String? fontFamily) → TextPolicy
toCaptureOptions() → CaptureOptions

Available on RenderOptions, provided by the RenderOptionsToCapture extension

Wire data to the in-process callback form: the per-family map becomes the per-run policy.
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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