toList method

List toList(
  1. {bool growable = false}
)

Creates a List containing the items of this Tuple2.

The elements are in item order. The list is variable-length if growable is true.

Implementation

List toList({bool growable = false}) =>
    List.from([item1, item2], growable: growable);