dataFor static method

LocaleData? dataFor(
  1. String localeCode
)

Gets the data for a specific locale (from HoraLocales registry).

Note: The locale must be registered with HoraLocales.register first.

Implementation

static LocaleData? dataFor(String localeCode) {
  final locale = HoraLocales.get(localeCode);
  if (locale == null) return null;
  return LocaleData._(locale);
}