RestorableNumN<T extends num?> constructor Null safety

RestorableNumN<T extends num?>(
  1. T defaultValue
)

Creates a RestorableNumN.

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

Implementation

RestorableNumN(T defaultValue) : super(defaultValue);