RestorableDateTime constructor Null safety

RestorableDateTime(
  1. DateTime defaultValue
)

Creates a RestorableDateTime.

If no restoration data is available to restore the value in this property from, the property will be initialized with the provided defaultValue.

Implementation

RestorableDateTime(DateTime defaultValue) : _defaultValue = defaultValue;