isMethod method

bool isMethod(
  1. String method
)

Checks whether method is a valid method or not.

Implementation

bool isMethod(String method) {
  return _methodRegex.hasMatch(method);
}