SemanticsOwnerRaiiExt extension
Extension for managing SemanticsOwner lifecycle.
Example:
final semanticsOwner = SemanticsOwner(...)
.withLifecycle(this, debugLabel: 'SemanticsOwner');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → SemanticsOwner -
Available on SemanticsOwner, provided by the SemanticsOwnerRaiiExt extension
Attaches this semantics owner to a RaiiLifecycleAware object for automatic disposal.