withConfig method
Creates a new list with the given config
.
To copy the config from another IList:
list = list.withConfig(other.config);
To change the current config:
list = list.withConfig(list.config.copyWith(isDeepEquals: isDeepEquals));
See also: withIdentityEquals and withDeepEquals.
Implementation
@useCopy
IList<T> withConfig(ConfigList config) {
return (config == this.config) ? this : IList._unsafe(_l, config: config);
}