addDaysToDate method Null safety
Returns a DateTime with the added number of days and time set to midnight.
Implementation
static DateTime addDaysToDate(DateTime date, int days) {
return DateTime(date.year, date.month, date.day + days);
}
Returns a DateTime with the added number of days and time set to midnight.
static DateTime addDaysToDate(DateTime date, int days) {
return DateTime(date.year, date.month, date.day + days);
}