SimpleLine class

A simple freehand line composed of points and a color.

Inheritance

Constructors

SimpleLine.new(Offset startPoint, Color color)
Creates a new SimpleLine with a starting point and color.

Properties

color Color
Color of the line.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
points List<Offset>
List of points that form the line.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintOnCanvas(Canvas canvas) → void
Paints the content on the given canvas.
override
toString() String
A string representation of this object.
inherited
update(Offset newPoint) → void
Updates the content with a new point.
override

Operators

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