theDayBefore function Null safety

DateTime theDayBefore(
  1. DateTime currentDate
)

Return the day before currentDate

Implementation

DateTime theDayBefore(DateTime currentDate) {
  return currentDate.subtract(1.d);
}