i18nObjInLocal function Null safety

Map<String, dynamic> i18nObjInLocal(
  1. CalendarLocaleType type
)

Implementation

Map<String, dynamic> i18nObjInLocal(CalendarLocaleType type) {
  switch (type) {
    case CalendarLocaleType.en:
      return _i18nModel['en']!;
    case CalendarLocaleType.zh:
      return _i18nModel['zh']!;
    default:
      return _i18nModel['zh']!;
  }
}