contains method

bool contains(
  1. Type type
)

Implementation

bool contains(Type type) {
  return all.contains(type) || any.contains(type);
}