IterableReplace<T> extension
Replace first or all occurrences in a list.
- on
-
- List<
T>
- List<
Methods
-
replaceAllValues(
T value, T replacement) → List< T> -
Available on List<
New list with everyT> , provided by the IterableReplace extensionvaluereplaced byreplacement. -
replaceFirst(
T value, T replacement) → List< T> -
Available on List<
New list with first occurrence ofT> , provided by the IterableReplace extensionvaluereplaced byreplacement.