Navbar constructor

const Navbar({
  1. Key? key,
  2. required String title,
  3. List<Widget>? actions,
  4. Widget? leading,
  5. bool automaticallyImplyLeading = true,
  6. NavbarStyle style = NavbarStyle.standard,
  7. Color? backgroundColor,
  8. Color? iconColor,
  9. Color? titleColor,
  10. double? elevation,
  11. Widget? flexibleSpace,
  12. TextStyle? titleStyle,
  13. bool centerTitle = true,
  14. double? titleSpacing,
  15. double height = kToolbarHeight,
  16. Widget? bottom,
})

Implementation

const Navbar({
  Key? key,
  required this.title,
  this.actions,
  this.leading,
  this.automaticallyImplyLeading = true,
  this.style = NavbarStyle.standard,
  this.backgroundColor,
  this.iconColor,
  this.titleColor,
  this.elevation,
  this.flexibleSpace,
  this.titleStyle,
  this.centerTitle = true,
  this.titleSpacing,
  this.height = kToolbarHeight,
  this.bottom,
}) : super(key: key);