directiveValue property

  1. @override
DirectiveNode get directiveValue
override

The directive value represented by this object

Implementation

@override
DirectiveNode get directiveValue {
  return DirectiveNode(
    name: const NameNode(value: 'cost'),
    arguments: [
      ArgumentNode(
        name: const NameNode(value: 'complexity'),
        value: IntValueNode(value: complexity.toString()),
      ),
    ],
  );
}