tagsMatch method
Do any of the runTags match one of expectedTags
?
If runTags is empty, anything matches.
If there are runTags but no expectedTags
, don't match.
Implementation
bool tagsMatch(List<String?>? expectedTags) {
return runTags!.isEmpty
? true
: runTags!.any((element) => expectedTags!.contains(element));
}