Union7<X1, X2, X3, X4, X5, X6, X7> class
Emulate the union of the types X1 .. X7.
Constructors
- Union7.in1(X1 value)
- Create a Union7 value from the first type argument.
- Union7.in2(X2 value)
- Create a Union7 value from the second type argument.
- Union7.in3(X3 value)
- Create a Union7 value from the third type argument.
- Union7.in4(X4 value)
- Create a Union7 value from the fourth type argument.
- Union7.in5(X5 value)
- Create a Union7 value from the fifth type argument.
- Union7.in6(X6 value)
- Create a Union7 value from the sixth type argument.
- Union7.in7(X7 value)
- Create a Union7 value from the seventh type argument.
Properties
- as1 → X1
-
Return the value if it has type
X1, otherwise throw.no setter - as1OrNull → X1?
-
Return the value if it has type
X1, otherwise null.no setter - as2 → X2
-
Return the value if it has type
X2, otherwise throw.no setter - as2OrNull → X2?
-
Return the value if it has type
X2, otherwise null.no setter - as3 → X3
-
Return the value if it has type
X3, otherwise throw.no setter - as3OrNull → X3?
-
Return the value if it has type
X3, otherwise null.no setter - as4 → X4
-
Return the value if it has type
X4, otherwise throw.no setter - as4OrNull → X4?
-
Return the value if it has type
X4, otherwise null.no setter - as5 → X5
-
Return the value if it has type
X5, otherwise throw.no setter - as5OrNull → X5?
-
Return the value if it has type
X5, otherwise null.no setter - as6 → X6
-
Return the value if it has type
X6, otherwise throw.no setter - as6OrNull → X6?
-
Return the value if it has type
X6, otherwise null.no setter - as7 → X7
-
Return the value if it has type
X7, otherwise throw.no setter - as7OrNull → X7?
-
Return the value if it has type
X7, otherwise null.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- is1 → bool
-
Return type iff the value has type
X1.no setter - is2 → bool
-
Return type iff the value has type
X2.no setter - is3 → bool
-
Return type iff the value has type
X3.no setter - is4 → bool
-
Return type iff the value has type
X4.no setter - is5 → bool
-
Return type iff the value has type
X5.no setter - is6 → bool
-
Return type iff the value has type
X6.no setter - is7 → bool
-
Return type iff the value has type
X7.no setter - isValid → bool
-
Return true iff this Union7 has a type in
X1..X7.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Object?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
split<
R> (R on1(X1), R on2(X2), R on3(X3), R on4(X4), R on5(X5), R on6(X6), R on7(X7)) → R -
splitNamed<
R> ({R on1(X1)?, R on2(X2)?, R on3(X3)?, R on4(X4)?, R on5(X5)?, R on6(X6)?, R on7(X7)?, R onOther(Object?)?, R onInvalid(Object?)?}) → R? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromObject<
X1, X2, X3, X4, X5, X6, X7> (Object? value) → Union7< X1, X2, X3, X4, X5, X6, X7>