DateTimeNullableExtensions extension Null safety

on

Properties

elapsed Duration
Returns how much time has elapsed since this date. If the date is null or in the future, then Duration.zero will be returned
read-only

Methods

atStartOfDay() DateTime?
atTime([int hour = 0, int minute = 0, int second = 0]) DateTime?