LocaleConfiguration.fromCode constructor

LocaleConfiguration.fromCode(
  1. String code, {
  2. required String nativeName,
  3. required String icon,
})

Create from language code with explicit name and icon

Implementation

factory LocaleConfiguration.fromCode(
  String code, {
  required String nativeName,
  required String icon,
}) {
  return LocaleConfiguration(
    locale: Locale(code),
    nativeName: nativeName,
    icon: icon,
  );
}