FreeStyleDrawable class Null safety

Free-style Drawable (hand scribble).

Inheritance

Constructors

FreeStyleDrawable({required List<Offset> path, double strokeWidth = 1, Color color = Colors.black, bool hidden = false})
Creates a FreeStyleDrawable to draw path.

Properties

color Color
The color the path will be drawn with.
final
hashCode int
The hash code for this object.
read-onlyinherited
hidden bool
Whether the drawable is hidden or not.
finalinherited
isHidden bool
read-onlyinherited
isNotHidden bool
read-onlyinherited
paint Paint
read-onlyoverride
path List<Offset>
List of points representing the path to draw.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
strokeWidth double
The stroke width the path will be drawn with.
finalinherited

Methods

copyWith({bool? hidden, List<Offset>? path, Color? color, double? strokeWidth}) FreeStyleDrawable
Creates a copy of this but with the given fields replaced with the new values.
override
draw(Canvas canvas, Size size) → void
Draws the free-style path on the provided canvas of size size.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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