RestorableStringNRaiiExt extension

Extension for managing nullable RestorableStringN lifecycle.

Example:

final description = RestorableStringN(null)
  .withLifecycle(this, debugLabel: 'Description');
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) RestorableStringN

Available on RestorableStringN, provided by the RestorableStringNRaiiExt extension

Attaches this nullable restorable string to a RaiiLifecycleAware object for automatic disposal.