Tristate enum

Tristate flags for a semantics not

Inheritance
Available extensions

Values

none → const Tristate

The property is not applicable to this semantics node.

const Tristate(0)
isTrue → const Tristate

The property is applicable and its state is "true" or "on".

const Tristate(1)
isFalse → const Tristate

The property is applicable and its state is "false" or "off".

const Tristate(2)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
The value of the flag.
final

Methods

hasConflict(Tristate other) → bool
If two semantics nodes both have this property, they have conflict and can't be merged.
merge(Tristate other) → Tristate
Semantics nodes will only be merged when they are not in conflict.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBoolOrNull() → bool?
Convert a Tristate flag to bool or null.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<Tristate>
A constant List of the values in this enum, in order of their declaration.