RestorableIntRaiiExt extension
Extension for managing RestorableInt lifecycle.
Example:
final counter = RestorableInt(0)
.withLifecycle(this, debugLabel: 'Counter');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableInt -
Available on RestorableInt, provided by the RestorableIntRaiiExt extension
Attaches this restorable integer to a RaiiLifecycleAware object for automatic disposal.