RestorableNumNRaiiExt<T extends num?> extension

Extension for managing nullable RestorableNumN lifecycle.

Example:

final quantity = RestorableNumN(null)
  .withLifecycle(this, debugLabel: 'Quantity');
on

Methods

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

Available on RestorableNumN<T>, provided by the RestorableNumNRaiiExt extension

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