prevDay property

DateTime get prevDay

Returns DateTime object of Previous day.

final checkDate =
     DateTime.parse('2023-09-16 20:18:00.123456789z');
checkDate.prevDay;          // 15-09-2023

This will not consider time Parameters.

Implementation

DateTime get prevDay => superSubtract(days: 1);