DateTimeNullableParameterExtensions extension
- on
Methods
-
differenceWith(
DateTime? other) → Duration? -
Available on DateTime, provided by the DateTimeNullableParameterExtensions extension
Safely calculates the difference with a nullable DateTime Returns null if other is null, otherwise returns the Duration difference -
differenceWithAsTimeOfDay(
DateTime? other) → TimeOfDay? -
Available on DateTime, provided by the DateTimeNullableParameterExtensions extension
Safely calculates the difference with a nullable DateTime as TimeOfDay Returns null if other is null, otherwise returns the TimeOfDay difference