endOfDay property

DateTime? get endOfDay

Returns the end of the day (23:59:59.999).

Implementation

DateTime? get endOfDay {
  if (this == null) return null;
  return DateTime(this!.year, this!.month, this!.day, 23, 59, 59, 999);
}