getDirectiveValues method

Iterable<ValueNode> getDirectiveValues(
  1. String directive,
  2. String argument
)

Implementation

Iterable<ValueNode> getDirectiveValues(String directive, String argument) => getDirectives(directive)
    .expand((directive) => directive.arguments.where((e) => e.name.value == argument))
    .map((d) => d.value);