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<
Attaches this nullable restorable number to a RaiiLifecycleAware object for automatic disposal.T> , provided by the RestorableNumNRaiiExt extension