GlobalCupertinoLocalizations constructor

const GlobalCupertinoLocalizations({
  1. required String localeName,
  2. required DateFormat fullYearFormat,
  3. required DateFormat dayFormat,
  4. required DateFormat mediumDateFormat,
  5. required DateFormat singleDigitHourFormat,
  6. required DateFormat singleDigitMinuteFormat,
  7. required DateFormat doubleDigitMinuteFormat,
  8. required DateFormat singleDigitSecondFormat,
  9. 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 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,
     _mediumDateFormat = mediumDateFormat,
     _singleDigitHourFormat = singleDigitHourFormat,
     _singleDigitMinuteFormat = singleDigitMinuteFormat,
     _doubleDigitMinuteFormat = doubleDigitMinuteFormat,
     _singleDigitSecondFormat = singleDigitSecondFormat,
     _decimalFormat =decimalFormat;