Generator class

Generator is class that lets you create a Drawable object for a shape.

Constructors

Generator(DrawConfig? drawConfig, Filler? filler)

Properties

drawConfig DrawConfig?
final
filler Filler?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

arc(double x, double y, double width, double height, double start, double stop, [bool closed = false]) Drawable
Draws an arc. An arc is described as a section of an ellipse.
circle(double x, double y, double diameter) Drawable
Draws a rectangle with the center at (x, y) with the specified diameter.
curvePath(List<PointD> points) Drawable
Draws a curve passing through the points passed in.
ellipse(double x, double y, double width, double height) Drawable
Draws a rectangle with the center at (x, y) with the specified width and height.
line(double x1, double y1, double x2, double y2) Drawable
Draws a line from (x1, y1) to (x2, y2).
linearPath(List<PointD> points) Drawable
Draws a set of lines connecting the specified points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polygon(List<PointD> points) Drawable
Draws a polygon with the specified vertices.
rectangle(double x, double y, double width, double height) Drawable
Draws a rectangle with the top-left corner at (x, y) with the specified width and height.
toString() String
A string representation of this object.
inherited

Operators

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