# toList method

1. @override

List<E> toList({

1. bool growable = true,

})
override

Converts to a regular Dart List.

## Implementation

    @override
    List<E> toList({bool growable = true}) {
      final result = <E>[];
      var current = _head;
      while (current != null) {
        result.add(current.data);
        current = current.next;
      }
      return growable ? result : List.unmodifiable(result);
    }