toDurationWithDefault method
Converts value into Date or returns default when conversion is not possible.
value
the value to convert.- defaultValue the default value. Returns Date value or default when conversion is not supported.
See [toNullableDuration]