validatePart method

bool validatePart(
  1. String type
)

Implementation

bool validatePart(String type) {
  if (expectedType.isNotEmpty) {
    return expectedType == type;
  }

  if (!isURType(type)) {
    return false;
  }

  expectedType = type;
  return true;
}