hasDirective method

bool hasDirective(
  1. String name
)

Implementation

bool hasDirective(String name) => directives.any((element) => element.name.value == name);