RestorableCupertinoTabControllerRaiiExt extension
Extension for managing RestorableCupertinoTabController lifecycle.
Example:
class MyWidgetState extends State<MyWidget> with RaiiStateMixin {
late final tabController = RestorableCupertinoTabController(initialIndex: 0)
.withLifecycle(this, debugLabel: 'RestorableCupertinoTabs');
}
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableCupertinoTabController -
Available on RestorableCupertinoTabController, provided by the RestorableCupertinoTabControllerRaiiExt extension
Attaches this restorable tab controller to a RaiiLifecycleAware object for automatic disposal.