pluralTypeFromKey static method
Implementation
static PluralType? pluralTypeFromKey(String key) {
if (key.endsWith('.zero')) return PluralType.zero;
if (key.endsWith('.one')) return PluralType.one;
if (key.endsWith('.two')) return PluralType.two;
if (key.endsWith('.few')) return PluralType.few;
if (key.endsWith('.many')) return PluralType.many;
if (key.endsWith('.other')) return PluralType.other;
return null;
}