negativeTagsMatch method
Do any of the negativeTags match one of expectedTags
or @ignore?
If expectedTags
is empty, nothing matches.
If there are no negativeTags, return false as well
Implementation
bool negativeTagsMatch(List<String?>? expectedTags) {
return negativeTags.isEmpty
? false
: negativeTags.any((element) =>
(expectedTags!.contains(element) || element == "@ignore"));
}