Union2<A, B> class sealed

A Union2 holds one of two values, either an instance of A or B, never both.

Implementers

Properties

a → A
This value is only accessable, if this Union2 is a Union2A.
no setter
b → B
This value is only accessable, if this Union2 is a Union2B.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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