OneOf1<T0> class

Inheritance

Constructors

OneOf1({required T0 value})

Properties

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
no setteroverride
types List<Type>
all available types to choose from
no setteroverride
value → T0
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