GlobalCupertinoLocalizations constructor

const GlobalCupertinoLocalizations({@required String localeName, @required DateFormat fullYearFormat, @required DateFormat dayFormat, @required DateFormat mediumDateFormat, @required DateFormat singleDigitHourFormat, @required DateFormat singleDigitMinuteFormat, @required DateFormat doubleDigitMinuteFormat, @required DateFormat singleDigitSecondFormat, @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;