isSpecifiedDirective function

bool isSpecifiedDirective(
  1. GraphQLDirective directive
)

Whether the directive is one of the default GraphQLDirective.specifiedDirectives

Implementation

bool isSpecifiedDirective(GraphQLDirective directive) {
  return GraphQLDirective.specifiedDirectives
      .map((e) => e.name)
      .contains(directive.name);
}