Variable class

A Variable inside the layout Solver. It represents an indeterminate in the Expression that is used to create the Constraint. If any entity is interested in watching updates to the value of this indeterminate, it can assign a watcher as the owner.

Constructors

Variable(double value)
Creates a new Variable with the given constant value.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
An optional name given to the variable. This is useful in debugging Solver state.
getter/setter pair
owner Param?
Variables represent state inside the solver. This state is usually of interest to some entity outside the solver. Such entities can (optionally) associate themselves with these variables. This means that when solver is flushed, it is easy to obtain a reference to the entity the variable is associated with.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
The current value of the variable.
getter/setter pair

Methods

applyUpdate(double updated) bool
Used by the Solver to apply updates to this variable. Only updated variables show up in Solver flush results.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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