matchesType method

bool matchesType(
  1. UnitType type
)

Implementation

bool matchesType(UnitType type) => unit.unitType == type;