startOfYesterday static method

DateTime startOfYesterday()

Start of yesterday in the local timezone

Implementation

static DateTime startOfYesterday() => DateTime.now().startOfLastDay();