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