Pair<F, S> class

This is class can be used when you want to group two values, Example cases :

  1. If you want to return two values from a method
  2. If you want to pass two values to a method
  3. Contain two values in a map or list

Constructors

Pair(F first, S second)

Properties

first → F
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 → S
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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