replaceAll method
Finds all occurrences of from
, and replace them with to
.
Implementation
IList<T> replaceAll({required T from, required T to}) =>
map((element) => (element == from) ? to : element).toIList(config);
Finds all occurrences of from
, and replace them with to
.
IList<T> replaceAll({required T from, required T to}) =>
map((element) => (element == from) ? to : element).toIList(config);