withLifecycle method

RestorableCupertinoTabController withLifecycle(
  1. RaiiLifecycleAware lifecycleAware, {
  2. String? debugLabel,
})

Attaches this restorable tab controller to a RaiiLifecycleAware object for automatic disposal.

Implementation

RestorableCupertinoTabController withLifecycle(
  RaiiLifecycleAware lifecycleAware, {
  String? debugLabel,
}) {
  RaiiDisposeable.withLifecycle(
    lifecycleAware,
    dispose: dispose,
    debugLabel: debugLabel,
  );
  return this;
}