hasType method

bool hasType(
  1. Type type
)

Implementation

bool hasType(Type type) {
  return primaryType == type || secondaryTypes.contains(type);
}