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