toIList method
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);