RestorableBoolRaiiExt extension

Extension for managing RestorableBool lifecycle.

Example:

final isEnabled = RestorableBool(false)
  .withLifecycle(this, debugLabel: 'IsEnabled');
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) RestorableBool

Available on RestorableBool, provided by the RestorableBoolRaiiExt extension

Attaches this restorable boolean to a RaiiLifecycleAware object for automatic disposal.