Canvas class

Constructors

Canvas(int width, int height)

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

circle(double cx, double cy, double r) → void
clear([int? x, int? y, int? w, int? h]) → void
drawString(String str, double x, double y) → void
fill(double x, double y, double w, double h) → void
height() int
line(double x1, double y1, double x2, double y2, [double? scale]) → void
lock(dynamic c, dynamic p) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(int x, int y) → void
rect(double x, double y, double w, double h, [double? scale]) → void
setColor(int r, int g, int b, [int a = 255]) → void
setColorBGR(int bgr) → void
setColorRGB(int rgb) → void
setFont(double size, [String? family]) → void
setSize(int width, int height) → void
setStrokeWidth(double width) → void
stringWidth(String str) double
toString() String
A string representation of this object.
inherited
unlock() → void
width() int

Operators

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

Static Methods

setCanvasEnv(CanvasEnv env) → void