RestorableDoubleNRaiiExt extension

Extension for managing nullable RestorableDoubleN lifecycle.

Example:

final rating = RestorableDoubleN(null)
  .withLifecycle(this, debugLabel: 'Rating');
on

Methods

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

Available on RestorableDoubleN, provided by the RestorableDoubleNRaiiExt extension

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