getDirectiveValue method

ValueNode? getDirectiveValue(
  1. String directive,
  2. String argument
)

Implementation

ValueNode? getDirectiveValue(String directive, String argument) =>
    getDirective(directive)?.arguments.where((e) => e.name.value == argument).firstOr()?.value;