toList method

List<T> toList()

Implementation

List<T> toList() => map((t) => [t]).orElseGet([]);