Sequence2<T1, T2> class

Immutable typed sequence with 2 values.

Annotations
  • @immutable

Constructors

Sequence2(T1 first, T2 second)
Constructs a sequence with 2 typed values.
const

Properties

first → T1
Returns the first element of this sequence.
final
hashCode int
The hash code for this object.
no setteroverride
last → T2
Returns the last (or second) element of this sequence.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second → T2
Returns the second element of this sequence.
final

Methods

map<R>(R callback(T1, T2)) → R
Converts this sequence to a new type R with the provided callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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