RestorableNumRaiiExt<T extends num> extension

Extension for managing RestorableNum lifecycle.

Example:

final number = RestorableNum(0.0)
  .withLifecycle(this, debugLabel: 'RestorableNum');
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) RestorableNum<T>

Available on RestorableNum<T>, provided by the RestorableNumRaiiExt extension

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