yesterday top-level property

DateTime get yesterday

Returns DateTime object of Yersrday's date.

This will not consider time paremeters.

Implementation

DateTime get yesterday => DateTime.now().prevDay;