AppShell constructor
const
AppShell({
- required AppUser user,
- Map<
String, WidgetBuilder> pages = const {}, - Widget? body,
- String title = '',
- List<
AppNotification> notifications = const [], - VoidCallback? onLogout,
- String? initialRoute,
- bool isDark = false,
- VoidCallback? onToggleTheme,
- Key? key,
Implementation
const AppShell({
required this.user,
required this.navItems,
this.pages = const {},
this.body,
this.title = '',
this.notifications = const [],
this.onLogout,
this.onNavigate,
this.initialRoute,
this.isDark = false,
this.onToggleTheme,
super.key,
}) : assert(
pages.length > 0 || body != null,
'Forneça `pages` (rota→conteúdo) ou um `body`.',
);