AbstractShape class abstract

Implementers

Constructors

AbstractShape({Offset location = const Offset(0, 0), Size size = const Size(20, 20), Color color = Colors.grey, int zIndex = 0, int reactSize = 10})

Properties

activeResizePoint ResizePoint?
no setter
activeRotatePoint RotatePoint?
no setter
angle double
no setter
center Offset
no setter
color Color
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isDragging bool
no setter
isHighlight bool
no setter
isResizing bool
no setter
isRotating bool
no setter
isSelected bool
no setter
location Offset
getter/setter pair
reactSize int
getter/setter pair
removePoints List<Offset>
no setter
resizePoints List<ResizePoint>
no setter
rotatePoints List<RotatePoint>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
getter/setter pair
zIndex int
getter/setter pair

Methods

changeZIndex(int index) → void
deSelected() → void
draw(Canvas canvas, Size boardSize) → void
endDrag() → void
endResize() → void
endRotate() → void
highlight() → void
isOverObject(Offset offset) bool
isOverRemovePoint(Offset mouseOffset) bool
isOverResizePoint(Offset mouseOffset) bool
isOverRotatePoint(Offset mouseOffset) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overRemovePoint(Offset mouseOffset) Offset?
overResizePoint(Offset mouseOffset) ResizePoint?
overRotatePoint(Offset mouseOffset) RotatePoint?
resize(Offset oldOffset, Offset newOffset) → void
rotate(Offset oldOffset, Offset newOffset) → void
selected() → void
shouldRepaint(covariant AbstractShape oldDelegate) bool
startDrag() → void
startResize(ResizePoint resizePoint) → void
startRotate(RotatePoint rotatePoint) → void
toString() String
A string representation of this object.
inherited
translate(Offset oldOffset, Offset newOffset) → void
unHighlight() → void

Operators

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