Variant2Item0<T0, T1> class
final
Represents the first alternative of Variant2.
Constructors
- Variant2Item0(T0 value)
-
Creates an instance of the first alternative.
const
Properties
Methods
-
holdsAlternative<
T> () → bool -
Checks if the variant currently holds the specified type alternative.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
visit<
R> ({required R onT0(T0), required R onT1(T1)}) → R -
Visits the underlying value with exhaustive matching.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override