debugCheckIsValidTimetableMonth method
bool
debugCheckIsValidTimetableMonth(
)
Implementation
bool debugCheckIsValidTimetableMonth() {
assert(() {
if (isValidTimetableMonth) return true;
throw FlutterError.fromParts([
ErrorSummary('Invalid month for timetable: `$this`'),
ErrorDescription(
'A valid month for timetable must be a valid month for timetable '
'and be the first day of the month.',
),
ErrorHint(
'The actual time zone is ignored when displaying events, timetable '
'only uses the `year` and `month` fields.',
),
_localDateTimeNotUtcExplanation,
_localDateTimeToTimetableExplanation,
]);
}());
return true;
}