without method

InkList without(
  1. InkList listToRemove
)
Returns a new list that's the same as the current one, except with the given items removed that are in the passed in list. Equivalent to calling (list1 - list2) in ink. List to remove.

Implementation

InkList without(InkList listToRemove) {
  var result = InkList.of(this);
  result.removeWhere((k, v) => listToRemove.containsKey(k));
  return result;
}