Pair<T1, T2>.fromRecord constructor

Pair<T1, T2>.fromRecord(
  1. (T1, T2) record
)

Creates a Pair from a modern Dart 3 Record.

Implementation

Pair.fromRecord((T1, T2) record) : first = record.$1, second = record.$2;