startOfDay property
DateTime
startOfDay
Returns the start of the day for this DateTime object.
Example:
var now = DateTime.now();
var start = now.startOfDay;
print(start); // Output: "YYYY-MM-DD 00:00:00.000"
Implementation
DateTime get startOfDay => DateTime(year, month, day);