Triple<Ta, Tb, Tc> class

Structure for holding three values of independent types.

Triples are immutable. If triples are checked for equality, all of the values (a, b and c) of the triple are checked for equality. Triples can be serialized with JsonEncoder.

Constructors

Triple(Ta a, Tb b, Tc c)
const

Properties

a → Ta
final
b → Tb
final
c → Tc
final
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
toJson() List
Enables triples to be serialized with JsonEncoder.
toString() String
A string representation of this object.
inherited
withA(Ta value) Triple<Ta, Tb, Tc>
withB(Tb value) Triple<Ta, Tb, Tc>
withC(Tc value) Triple<Ta, Tb, Tc>

Operators

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

Static Methods

factory<Ta, Tb, Tc>(Ta a, Tb b, Tc c) Triple<Ta, Tb, Tc>
Static factory function that acts like a constructor.