withLifecycle method
Attaches this nullable restorable double to a RaiiLifecycleAware object for automatic disposal.
Implementation
RestorableDoubleN withLifecycle(
RaiiLifecycleAware lifecycleAware, {
String? debugLabel,
}) {
RaiiDisposeable.withLifecycle(
lifecycleAware,
dispose: dispose,
debugLabel: debugLabel,
);
return this;
}