ShapeBehavior class final
What a person may do to a shape on the canvas.
Constructors
- ShapeBehavior({bool selectable = true, bool deletable = true, bool movable = true, bool resizable = true, bool rotatable = true, bool rotationHandle = false, ShapeTextSizing textSizing = ShapeTextSizing.fixed})
-
const
Properties
- collapsed → ShapeBehavior
-
A collapsed presentation cannot resize or rotate the preserved
expanded frame, and its text does not size it.
no setter
- deletable → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locked → ShapeBehavior
-
A locked shape can be selected but not changed.
no setter
- movable → bool
-
final
- resizable → bool
-
final
-
resizeHandles
→ List<
ShapeResizeHandle> -
The resize sites: none unless resizable, and only the sides when
height follows the content.
no setter
- resizesHeight → bool
-
no setter
- resizesWidth → bool
-
Whether resizing can change the width, and the height.
no setter
- rotatable → bool
-
final
- rotationHandle → bool
-
Shows a top stem-and-circle rotation control when rotatable.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectable → bool
-
final
- textSizing → ShapeTextSizing
-
final
Methods
-
copyWith(
{bool? selectable, bool? deletable, bool? movable, bool? resizable, bool? rotatable, ShapeTextSizing? textSizing}) → ShapeBehavior -
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