isSpecifiedDirective function
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);
}