@@ -97,25 +97,15 @@ abstract class GlobalMaterialLocalizations implements MaterialLocalizations {
97
97
required intl.DateFormat shortMonthDayFormat,
98
98
required intl.NumberFormat decimalFormat,
99
99
required intl.NumberFormat twoDigitZeroPaddedFormat,
100
- }) : assert (localeName != null ),
101
- _localeName = localeName,
102
- assert (fullYearFormat != null ),
100
+ }) : _localeName = localeName,
103
101
_fullYearFormat = fullYearFormat,
104
- assert (compactDateFormat != null ),
105
102
_compactDateFormat = compactDateFormat,
106
- assert (shortDateFormat != null ),
107
103
_shortDateFormat = shortDateFormat,
108
- assert (mediumDateFormat != null ),
109
104
_mediumDateFormat = mediumDateFormat,
110
- assert (longDateFormat != null ),
111
105
_longDateFormat = longDateFormat,
112
- assert (yearMonthFormat != null ),
113
106
_yearMonthFormat = yearMonthFormat,
114
- assert (shortMonthDayFormat != null ),
115
107
_shortMonthDayFormat = shortMonthDayFormat,
116
- assert (decimalFormat != null ),
117
108
_decimalFormat = decimalFormat,
118
- assert (twoDigitZeroPaddedFormat != null ),
119
109
_twoDigitZeroPaddedFormat = twoDigitZeroPaddedFormat;
120
110
121
111
final String _localeName;
@@ -298,7 +288,6 @@ abstract class GlobalMaterialLocalizations implements MaterialLocalizations {
298
288
String pageRowsInfoTitle (int firstRow, int lastRow, int rowCount, bool rowCountIsApproximate) {
299
289
String ? text = rowCountIsApproximate ? pageRowsInfoTitleApproximateRaw : null ;
300
290
text ?? = pageRowsInfoTitleRaw;
301
- assert (text != null , 'A $_localeName localization was not found for pageRowsInfoTitle or pageRowsInfoTitleApproximate' );
302
291
return text
303
292
.replaceFirst (r'$firstRow' , formatDecimal (firstRow))
304
293
.replaceFirst (r'$lastRow' , formatDecimal (lastRow))
@@ -446,7 +435,6 @@ abstract class GlobalMaterialLocalizations implements MaterialLocalizations {
446
435
/// the short time pattern used in the `en_US` locale.
447
436
@override
448
437
TimeOfDayFormat timeOfDayFormat ({ bool alwaysUse24HourFormat = false }) {
449
- assert (alwaysUse24HourFormat != null );
450
438
if (alwaysUse24HourFormat) {
451
439
return _get24HourVersionOf (timeOfDayFormatRaw);
452
440
}
0 commit comments