TransformHandles class final

On-canvas handles that make a node an editable object (a sticker, a collage): corners scale it, edges stretch it, a knob rotates it.

Annotations
  • @immutable

Constructors

TransformHandles({bool corners = true, bool edges = false, bool rotateKnob = true, double snapAngle = 0, bool aspectLock = true, double minWidth = 16, double minHeight = 16, double maxWidth = 0, double maxHeight = 0, bool outline = true, Color color = defaultColor, double handleSize = 12, String selectionVariable = '', String selectionKey = ''})
const

Properties

aspectLock → bool
Corner handles keep the aspect ratio.
final
color → Color
final
corners → bool
final
edges → bool
Edge handles stretch one axis (TransformGesture.scaleXVariable...); hidden with aspectLock.
final
handleSize → double
A handle's size; its touch target is at least 32.
final
hashCode → int
The hash code for this object.
no setterinherited
maxHeight → double
The drawn size's limits (0 max: none).
final
maxWidth → double
The drawn size's limits (0 max: none).
final
minHeight → double
The drawn size's limits (0 max: none).
final
minWidth → double
The drawn size's limits (0 max: none).
final
outline → bool
A selection outline around the box.
final
props → List<Object?>
no setter
rotateKnob → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectionKey → String
A text variable holding the selected object's key: handles show only while it equals selectionKey (empty: the node's id), and a tap writes it. Empty: handles always show.
final
selectionVariable → String
A text variable holding the selected object's key: handles show only while it equals selectionKey (empty: the node's id), and a tap writes it. Empty: handles always show.
final
snapAngle → double
Degrees the knob snaps to (0 free; Shift snaps to 15).
final

Methods

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

Operators

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

Static Methods

fromJson(Object? json) → TransformHandles?

Constants

defaultColor → const Color