hasDirective method

bool hasDirective(
  1. String name
)

Implementation

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