GlobalCupertinoLocalizations constructor Null safety

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,
}) : assert(localeName != null),
     _localeName = localeName,
     assert(fullYearFormat != null),
     _fullYearFormat = fullYearFormat,
     assert(dayFormat != null),
     _dayFormat = dayFormat,
     assert(mediumDateFormat != null),
     _mediumDateFormat = mediumDateFormat,
     assert(singleDigitHourFormat != null),
     _singleDigitHourFormat = singleDigitHourFormat,
     assert(singleDigitMinuteFormat != null),
     _singleDigitMinuteFormat = singleDigitMinuteFormat,
     assert(doubleDigitMinuteFormat != null),
     _doubleDigitMinuteFormat = doubleDigitMinuteFormat,
     assert(singleDigitSecondFormat != null),
     _singleDigitSecondFormat = singleDigitSecondFormat,
     assert(decimalFormat != null),
     _decimalFormat =decimalFormat;