toIList method

IList<T> toIList([
  1. ConfigList? config
])

Creates an immutable list (IList) from the iterable.

Implementation

IList<T> toIList([ConfigList? config]) =>
    IList<T>.withConfig(this, config ?? IList.defaultConfig);