Mathematical expressions must be evaluated under a certain EvaluationType.
Currently there are three types, but not all expressions support each type.
If you try to evaluate an expression with an unsupported type, it will raise an
UnimplementedError
or UnsupportedError
.
- REAL
- VECTOR
- INTERVAL
Note: This class emulates an enumeration, since they are not supported by Dart yet.
Static Properties
- INTERVAL → EvaluationType
-
Public constructor for INTERVAL types. Always returns the same instance of a INTERVAL type.
read-only - INTERVAL_INT → int
-
Internal integer value for INTERVAL type.
read-only - REAL → EvaluationType
-
Public constructor for REAL types. Always returns the same instance of a REAL type.
read-only - REAL_INT → int
-
Internal integer value for REAL type.
read-only - VECTOR → EvaluationType
-
Public constructor for VECTOR types. Always returns the same instance of a VECTOR type.
read-only - VECTOR_INT → int
-
Internal integer value for VECTOR type.
read-only
Properties
- hashCode → int
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - type → int
-
read-only
Operators
-
operator ==(
EvaluationType et) → dynamic -
Two types are equal, if their internal int matches.
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
noSuchMethod
is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed tonoSuchMethod
in anInvocation
. IfnoSuchMethod
returns a value, that value becomes the result of the original invocation.…inherited -
toString(
) → String -
Returns a string representation of this object.