isParameter method

bool isParameter(
  1. String input
)

Implementation

bool isParameter(String input) {
  if (input == "") return false;
  if (this == null) return false;
  switch (this) {
    case ParameterExtractorType.uriTemplate:
      return input.startsWith("{") && input.endsWith("}");
    case ParameterExtractorType.restTemplate:
      return input.startsWith(":");
    default:
      return false;
  }
}