RestorableIntNRaiiExt extension
Extension for managing nullable RestorableIntN lifecycle.
Example:
final index = RestorableIntN(null)
.withLifecycle(this, debugLabel: 'Index');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableIntN -
Available on RestorableIntN, provided by the RestorableIntNRaiiExt extension
Attaches this nullable restorable integer to a RaiiLifecycleAware object for automatic disposal.