appliesTo method

bool appliesTo(
  1. String locale
)

Whether this pattern is enforced in locale, where the source locale is named by its own tag (a ban on em-dashes applies to the English source as much as to any translation).

Implementation

bool appliesTo(String locale) => locales.isEmpty || locales.contains(locale);