PaintedModel class

Represents a unit of shape or drawing information used in painting.

Constructors

PaintedModel({required PaintModeE mode, required List<Offset?> offsets, required Color color, required double strokeWidth, required double opacity, bool fill = false, bool hit = false})
Creates a new PaintedModel instance.
PaintedModel.fromMap(Map map)
factory

Properties

color → Color
The color used for drawing or filling the shape.
final
fill ↔ bool
A boolean indicating whether the drawn shape should be filled.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hit ↔ bool
A boolean flag indicating whether this unit of drawing has been hit.
getter/setter pair
id ↔ String
latefinal
mode → PaintModeE
The mode of the paint method, indicating the type of shape or drawing.
final
offsets ↔ List<Offset?>
A list of offsets representing the points of the shape or drawing. For shapes like circles and rectangles, it contains two points. For FreeStyle, it contains a list of points.
getter/setter pair
opacity → double
The opacity for the drawing.
final
paint → Paint
Gets the Paint object configured based on the properties of this PaintedModel.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shouldFill → bool
Determines whether the shape should be filled based on the paint mode.
no setter
strokeWidth → double
The width of the stroke used for drawing.
final

Methods

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

Operators

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