CupertinoTabView constructor Null safety

const CupertinoTabView(
  1. {Key? key,
  2. WidgetBuilder? builder,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. String? defaultTitle,
  5. Map<String, WidgetBuilder>? routes,
  6. RouteFactory? onGenerateRoute,
  7. RouteFactory? onUnknownRoute,
  8. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  9. String? restorationScopeId}
)

Creates the content area for a tab in a CupertinoTabScaffold.

Implementation

const CupertinoTabView({
  super.key,
  this.builder,
  this.navigatorKey,
  this.defaultTitle,
  this.routes,
  this.onGenerateRoute,
  this.onUnknownRoute,
  this.navigatorObservers = const <NavigatorObserver>[],
  this.restorationScopeId,
}) : assert(navigatorObservers != null);