CanvasState class

Implemented types

Constructors

CanvasState()

Properties

commands → List<DrawCommand>
final
currentColor ↔ Color
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
onUpdate ↔ VoidCallback?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attrColor(int r, int g, int b, int a) → void
override
clear() → void
override
drawEllipse(String mode, double x, double y, double w, double h) → void
override
drawLine(double x1, double y1, double x2, double y2) → void
override
drawPolygon(List<double> points) → void
override
drawRect(String mode, double x, double y, double w, double h) → void
override
drawRoundRect(String mode, double x, double y, double w, double h, double rx, double ry) → void
override
drawText(String text, double x, double y) → void
override
drawTextRect(String text, double x, double y, double w, double h, String halign, String valign) → void
override
flush() → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
toString() → String
A string representation of this object.
inherited

Operators

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