CustomHomeAppBar constructor

const CustomHomeAppBar({
  1. Key? key,
  2. bool allowBack = false,
  3. bool centerTitle = false,
  4. bool hideLeading = false,
  5. bool showNotificationsIcon = false,
  6. Widget? title,
  7. Widget? badge,
  8. Widget? actionButton,
  9. required String userName,
  10. required VoidCallback onNotificationPressed,
  11. required String userAvatar,
})

Implementation

const CustomHomeAppBar({
  super.key,
  this.allowBack = false,
  this.centerTitle = false,
  this.hideLeading = false,
  this.showNotificationsIcon = false,
  this.title,
  this.badge,
  this.actionButton,
  required this.userName,
  required this.onNotificationPressed,
  required this.userAvatar,
});