has method

bool has(
  1. String flag
)

Implementation

bool has(String flag) => parts.any((p) => p.kind == 'word' && p.raw == flag);