RestorableInt constructor Null safety

RestorableInt(
  1. int defaultValue
)

Creates a RestorableInt.

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

Implementation

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