OneOf5<T0, T1, T2, T3, T4> class

Inheritance

Constructors

OneOf5({required Object? value, required int typeIndex})

Properties

asT0 → T0
no setter
asT1 → T1
no setter
asT2 → T2
no setter
asT3 → T3
no setter
asT4 → T4
no setter
hashCode int
The hash code for this object.
no setterinherited
isNull bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeIndex int
determines where the value type is in the types field
final
types List<Type>
all available types to choose from
no setteroverride
value Object?
the actual value, accepts null
final
valueType Type
exact value type
no setterinherited

Methods

isTX(int index) bool
checks if typeIndex is equal to input index
inherited
isType(Type t) bool
checks if valueType is equal to input type
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
returns value.toString()
inherited

Operators

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