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<T>, provided by the RestorableEnumNRaiiRaiiExt extension

Attaches this nullable restorable enum to a RaiiLifecycleAware object.