Pair<T>.fromList constructor

Pair<T>.fromList(
  1. List<T> list
)

Implementation

Pair.fromList(List<T> list)
    : this(list[0], list.length > 1 ? list[1] : list[0]);