getPreset function
Returns the preset locales for the given id
.
Implementation
List<I18nLocale>? getPreset(String id) {
final locales = _presets[id];
if (locales == null) {
return null;
}
return locales.map((e) => I18nLocale.fromString(e)).toList();
}