toIList method

IList<T> toIList({
  1. int compare(
    1. T a,
    2. T b
    )?,
  2. ConfigList? config,
})

Returns a IList with all items from the set.

If you provide a compare function, the list will be sorted with it.

You can also provide a config for the IList.

Implementation

IList<T> toIList({
  int Function(T a, T b)? compare,
  ConfigList? config,
}) =>
    IList.fromISet(this, compare: compare, config: config);