Measure class final

Writes where the node is laid out, {x, y, width, height, centerX, centerY} in pixels, to a variable as layout changes: in the coordinates of the ancestor node relativeTo (empty: the screen), under key when the variable is a map. Other nodes then follow it: a marker traveling to the chip of the reader's layer on a timeline whose chips are laid out by data. The design canvas measures too.

Annotations
  • @immutable

Constructors

Measure({String variable = '', String key = '', String relativeTo = ''})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → String
With variable a map: the key (an expression, ${item.id}).
final
props → List<Object?>
no setter
relativeTo → String
The id of an ancestor node whose box the position is measured in.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variable → String
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) → Measure?