yesterday property

T get yesterday

Returns a DateTime that represents the day before this DateTime.

Implementation

T get yesterday => _yesterday ??= this - const Duration(days: 1);