RestorableDoubleRaiiExt extension

Extension for managing RestorableDouble lifecycle.

Example:

final price = RestorableDouble(0.0)
  .withLifecycle(this, debugLabel: 'Price');
on

Methods

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

Available on RestorableDouble, provided by the RestorableDoubleRaiiExt extension

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