TopBar constructor

const TopBar({
  1. required AppUser user,
  2. String title = '',
  3. List<AppNotification> notifications = const [],
  4. VoidCallback? onLogout,
  5. bool isDark = false,
  6. VoidCallback? onToggleTheme,
  7. Key? key,
})

Implementation

const TopBar({
  required this.user,
  this.title = '',
  this.notifications = const [],
  this.onLogout,
  this.isDark = false,
  this.onToggleTheme,
  super.key,
});