RestorableDouble constructor Null safety

RestorableDouble(
  1. double defaultValue
)

Creates a RestorableDouble.

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

Implementation

RestorableDouble(super.defaultValue) : assert(defaultValue != null);