withConfig method

IList<T> withConfig(
  1. ConfigList config
)

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

IList<T> withConfig(ConfigList config) {
  return (config == this.config) ? this : IListImpl._unsafe(_l, config: config);
}