Triple<L, M, R> class

Represents an immutable tuple that contains 3 values.

Mixed-in types
Annotations
  • @immutable

Constructors

Triple(L left, M middle, R right)
Creates a Triple with the given left, middle and right values.

Properties

fields List
The fields in this Triple.
final
hashCode int
The hash code for this object.
no setterinherited
left → L
The left value.
final
middle → M
The middle value.
final
The right value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<L1, M1, R1>(Mapper<L, L1> left, Mapper<M, M1> middle, Mapper<R, R1> right) Triple<L1, M1, R1>
Creates a Triple which left, middle and right values have been mapped using left, middle and right.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce<T>(T reduce(L, M, R)) → T
Reduces left, middle and right using reduce.
replace({L? left, M? middle, R? right}) Triple<L, M, R>
Creates a Triple which left, middle and/or right values have been replaced.
toString() String
A string representation of this object.
inherited

Operators

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