isUpdateMethodReturnOperation function

bool isUpdateMethodReturnOperation(
  1. MethodElement method
)

Implementation

bool isUpdateMethodReturnOperation(MethodElement method) {
  if (!isUpdateMethod(method)) return false;

  var returnType = method.returnType.getDisplayString(withNullability: false);
  return returnType == "UpdateOperation" || returnType.contains("Operation");
}