isValidType static method

bool isValidType(
  1. int type
)

Implementation

static bool isValidType(int type) {
  return _validTypes.contains(type) ? true : false;
}