RestorableNum<T extends num> constructor Null safety

RestorableNum<T extends num>(
  1. T defaultValue
)

Creates a RestorableNum.

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

Implementation

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