Binary class
A binary expression.
- Inheritance
-
- Object
- Expression
- Binary
Constructors
- Binary(String name, Expression left, Expression right, num function(num left, num right))
Properties
- function → num Function(num left, num right)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- left → Expression
-
final
- name → String
-
final
- right → Expression
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
eval(
Map< String, num> variables) → num -
Evaluates the expression with the provided
variables
.override -
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