CanvasContext class abstract

Receives drawing calls from a CanvasPainter. Coordinates are in the canvas's logical space; the canvas maps them to the sub-cell pixels of its Canvas.marker.

Constructors

CanvasContext()

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

drawDot(double x, double y, {Color? color}) → void
Lights a single pixel at logical (x, y).
drawLine(double x1, double y1, double x2, double y2, {Color? color, double width = 1}) → void
Draws a line segment in logical space (Bresenham at pixel resolution).
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