toString method

  1. @override
String toString()
override

Returns string representation of the Pair including its first and second values.

Implementation

@override
String toString() {
  return "($first, $second)";
}