RestorableStringRaiiExt extension
Extension for managing RestorableString lifecycle.
Example:
final name = RestorableString('')
.withLifecycle(this, debugLabel: 'Name');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableString -
Available on RestorableString, provided by the RestorableStringRaiiExt extension
Attaches this restorable string to a RaiiLifecycleAware object for automatic disposal.