Quad<T1, T2, T3, T4> class

Represents an immutable tuple that contains 4 values.

Mixed-in types
Annotations
  • @immutable

Constructors

Quad(T1 first, T2 second, T3 third, T4 fourth)
Creates a Quad with the given first, second, third and fourth values.

Properties

fields List
The fields in this Quad.
final
first → T1
The first value.
final
fourth → T4
The fourth value.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second → T2
The second value.
final
third → T3
The third value.
final

Methods

map<R1, R2, R3, R4>(Mapper<T1, R1> first, Mapper<T2, R2> second, Mapper<T3, R3> third, Mapper<T4, R4> fourth) Quad<R1, R2, R3, R4>
Creates a Quad which first, second, third and fourth values have been mapped using first, second, third and fourth.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce<T>(T reduce(T1, T2, T3, T4)) → T
Reduces first, second, third and fourth using reduce.
replace({T1? first, T2? second, T3? third, T4? fourth}) Quad<T1, T2, T3, T4>
Creates a Quad which first, second, third and/or fourth values have been replaced.
toString() String
A string representation of this object.
inherited

Operators

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