isQueryMethod function

bool isQueryMethod(
  1. MethodElement method
)

Implementation

bool isQueryMethod(MethodElement method) {
  if (method.metadata.length == 0) {
    return false;
  }
  var annotation = getAnnotation(method, Query);
  return annotation != null;
}