RestorableBool constructor Null safety

RestorableBool(
  1. bool defaultValue
)

Creates a RestorableBool.

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

Implementation

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