directives property

List<DirectiveNode> get directives

Implementation

List<DirectiveNode> get directives {
  final selection = this;
  return selection is FieldNode
      ? selection.directives
      : selection is FragmentSpreadNode
          ? selection.directives
          : (selection as InlineFragmentNode).directives;
}