CalculationOperator enum Value
An enumeration of possible operators for CalculationOperation.
Constructors
- CalculationOperator(String name, String operator, int precedence)
-
const
Values
- plus → const CalculationOperator
-
The addition operator.
CalculationOperator('plus', '+', 1)
- minus → const CalculationOperator
-
The subtraction operator.
CalculationOperator('minus', '-', 1)
- times → const CalculationOperator
-
The multiplication operator.
CalculationOperator('times', '*', 2)
- dividedBy → const CalculationOperator
-
The division operator.
CalculationOperator('divided by', '/', 2)
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- index → int
-
A numeric identifier for the enumerated value.
read-onlyinherited
- name → String
-
The English name of this.
final
- operator → String
-
The CSS syntax for this.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
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
Constants
-
values
→ const List<
CalculationOperator> -
A constant List of the values in this enum, in order of their declaration.
[plus, minus, times, dividedBy]