toList method

List<T> toList({
  1. bool? growable,
})

Returns a view List of the underlying vector.

By default this is a fixed-size view: modifications to either the source vector or the resulting list are reflected in both. If growable is set, a copy of the underlying data is made.

Implementation

List<T> toList({bool? growable}) => growable != null
    ? VectorList<T>(this).toList(growable: growable)
    : VectorList<T>(this);