RenderContext class
What a builder runs against: the request's compiled options and fonts, and in-process capture — the seam a document builder uses to drop a widget block into its pw layout as SVG.
Constructors
-
RenderContext({CaptureOptions? options, List<
RenderFont> fonts = const []})
Properties
-
fonts
→ List<
RenderFont> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → CaptureOptions
-
The request's wire options, already compiled to the callback form.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
warnings
→ List<
RenderWarning> -
Every warning the captures made through this context produced — so a
document's result can carry the honesty of each block inside it.
final
Methods
-
capturePdf(
Widget widget, {required Size size, CaptureOptions? options}) → Future< PdfResult> -
capturePng(
Widget widget, {required Size size, double pixelRatio = 3}) → Future< PngResult> -
captureSvg(
Widget widget, {required Size size, CaptureOptions? options}) → Future< SvgResult> -
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