EvaluationMode class

Typesafe enum representing the evaluation mode a conditional should operate with.

Annotations
  • @immutable

Properties

code String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromCode(String? code) EvaluationMode?
Returns the evaluation mode from the given code. If the code is null then this will return null. Otherwise, if the code doesn't match a valid code then this will throw an exception rather than returning.

Constants

and → const EvaluationMode
A mode that informs the evaluator to operate using an and based mechanism.
or → const EvaluationMode
A mode that informs the evaluator to operate using an or based mechanism.