ShapeAspectLockAffordance class final

Locks or unlocks the aspect ratio through setAspectLocked. Locking first makes the frame square, so a rectangle becomes a square and an ellipse a circle; resizing then keeps that ratio until it is unlocked.

Inheritance

Constructors

ShapeAspectLockAffordance({String lockLabel = 'Make square', bool round = false})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
lockLabel → String
What locking does, as in "Make circle".
final
round → bool
Whether the locked shape is round, such as a circle.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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