Pair<T> class

Represents a pair with a and b of type T.

Available Extensions

Constructors

Pair(T a, T b)
Pair.fromList(List<T> list)

Properties

a → T
final
aAsString String
Returns a as String.
no setter
aNotNull bool
Returns true if a not null.
no setter
asList List<T>
Returns as a List with a,b.
no setter
asMapEntry MapEntry<T, T>
Returns as a MapEntry.
no setter
asPoint Point<num>
Returns a Point with a as dart_math.Point.x and b as dart_math.Point.y.
no setter
b → T
final
bAsString String
Returns b as String.
no setter
bNotNull bool
Returns true if b not null.
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

join([String delimiter = '']) String
Joins a and b with the delimiter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
swapAB() Pair<T>
toString() String
A string representation of this object.
override

Operators

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