RestorableEnumNRaiiRaiiExt<T extends Enum> extension
Extension for managing nullable RestorableEnumN lifecycle.
Example:
final status = RestorableEnumN<Status>(null)
.withLifecycle(this, debugLabel: 'Status');
- on
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableEnumN< T> -
Available on RestorableEnumN<
Attaches this nullable restorable enum to a RaiiLifecycleAware object.T> , provided by the RestorableEnumNRaiiRaiiExt extension