DrawingTool class abstract

Implementers

Constructors

DrawingTool({required String id, required DrawingToolType type, required DateTime createTime, Color color = const Color(0xFFFFD700), double strokeWidth = 2.0, bool isVisible = true, DrawingToolState state = DrawingToolState.none})

Properties

color Color
getter/setter pair
createTime DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
isComplete bool
no setter
isVisible bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state DrawingToolState
getter/setter pair
strokeWidth double
getter/setter pair
type DrawingToolType
final

Methods

draw(Canvas canvas, Size size, double scaleX, double scrollX, double getX(double), double getY(double)) → void
getBounds() Rect
hitTest(Offset point) bool
move(Offset delta) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) DrawingTool?