containsItemNamed method

bool containsItemNamed(
  1. String itemName
)

Returns true if this ink list contains an item with the given short name (ignoring the original list where it was defined).

Implementation

bool containsItemNamed(String itemName) {
  for (var entry in entries) {
    if (entry.key.itemName == itemName) {
      return true;
    }
  }
  return false;
}