PaintInfo class

PaintInfo keeps track of a single unit of shape, whichever selected.

Constructors

PaintInfo({required PaintMode mode, required List<Offset?> offsets, required Color color, required double strokeWidth, String text = '', bool fill = false})
In case of string, it is used to save string value entered.

Properties

color Color
final
fill bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mode PaintMode
Mode of the paint method.
final
offsets List<Offset?>
Used to save offsets. Two point in case of other shapes and list of points for FreeStyle.
getter/setter pair
paint Paint
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldFill bool
no setter
strokeWidth double
final
text String
Used to save text in case of text type.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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