getOperationType method

OperationType? getOperationType()

Implementation

OperationType? getOperationType() {
  final visitor = _OperationTypeVisitor(operationName);

  final type = document.definitions
      .map((d) => d.accept(visitor))
      .whereNotNull()
      .firstOrNull;

  return type;
}