isMethod method

bool isMethod(
  1. String method
)

Implementation

bool isMethod(String method) {
  return route?.method.toLowerCase() == method.toLowerCase();
}