withLifecycle method
Attaches this page controller to a RaiiLifecycleAware object for automatic disposal.
Implementation
PageController withLifecycle(
RaiiLifecycleAware lifecycleAware, {
String? debugLabel,
}) {
RaiiDisposeable.withLifecycle(
lifecycleAware,
dispose: dispose,
debugLabel: debugLabel,
);
return this;
}