SimpleLine class
A simple freehand line composed of points and a color.
- Inheritance
-
- Object
- PaintContent
- SimpleLine
Constructors
- SimpleLine.new(Offset startPoint, Color color)
- Creates a new SimpleLine with a starting point and color.
Properties
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