withOut function

List withOut(
  1. List array,
  2. List values
)

Creates an array excluding all given values using SameValueZero for equality comparisons.

Implementation

List withOut(List array, List values) {
  return array.where((element) => !values.contains(element)).toList();
}