toList method

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

Returns a List of the coefficients of the underlying polynomial.

By default this is a fixed-size view: modifications to either the source polynomial 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
    ? PolynomialList<T>(this).toList(growable: growable)
    : PolynomialList<T>(this);