GlobalCupertinoLocalizations constructor

const GlobalCupertinoLocalizations({
  1. required String localeName,
  2. required DateFormat fullYearFormat,
  3. required DateFormat dayFormat,
  4. required DateFormat weekdayFormat,
  5. required DateFormat mediumDateFormat,
  6. required DateFormat singleDigitHourFormat,
  7. required DateFormat singleDigitMinuteFormat,
  8. required DateFormat doubleDigitMinuteFormat,
  9. required DateFormat singleDigitSecondFormat,
  10. required NumberFormat decimalFormat,
})

Initializes an object that defines the Cupertino widgets' localized strings for the given localeName.

The remaining '*Format' arguments uses the intl package to provide DateFormat configurations for the localeName.

Implementation

const GlobalCupertinoLocalizations({
  required String localeName,
  required intl.DateFormat fullYearFormat,
  required intl.DateFormat dayFormat,
  required intl.DateFormat weekdayFormat,
  required intl.DateFormat mediumDateFormat,
  required intl.DateFormat singleDigitHourFormat,
  required intl.DateFormat singleDigitMinuteFormat,
  required intl.DateFormat doubleDigitMinuteFormat,
  required intl.DateFormat singleDigitSecondFormat,
  required intl.NumberFormat decimalFormat,
}) : _localeName = localeName,
     _fullYearFormat = fullYearFormat,
     _dayFormat = dayFormat,
     _weekdayFormat = weekdayFormat,
     _mediumDateFormat = mediumDateFormat,
     _singleDigitHourFormat = singleDigitHourFormat,
     _singleDigitMinuteFormat = singleDigitMinuteFormat,
     _doubleDigitMinuteFormat = doubleDigitMinuteFormat,
     _singleDigitSecondFormat = singleDigitSecondFormat,
     _decimalFormat =decimalFormat;