get static method

SiteNavBar get({
  1. DeviceType type = DeviceType.desktop,
  2. Widget? title,
  3. double? height,
  4. Color? appBarColor,
  5. Color? drawerColor,
  6. AnimationType? navItemAnimation,
  7. Widget? fab,
  8. BoxDecoration? customDecoration,
  9. Widget? drawerHeader,
  10. Widget? drawerBody,
  11. double? elevation,
  12. bool? extendBodyBehindAppBar,
  13. Widget? drawerFooter,
  14. TextStyle? navTextStyle,
  15. bool? showFab,
  16. PageIndicator? pageIndicator,
  17. double? indicatorLineThickness,
  18. NavItemPosition? itemPosition,
  19. String? titleText,
  20. required Widget body,
  21. bool? enableDrawer,
  22. NavDrawerMode? drawerMode,
  23. Color? backgroundColor,
  24. double? MAX_PAGE_WIDTH,
  25. Widget? leading,
  26. double? navItemSpacing,
  27. List<Widget>? actions,
  28. List<NavItem>? navItems,
})

Implementation

static SiteNavBar get({
  DeviceType type = DeviceType.desktop,
  Widget? title,
  double? height,
  Color? appBarColor,
  Color? drawerColor,
  AnimationType? navItemAnimation,
  Widget? fab,
  BoxDecoration? customDecoration,
  Widget? drawerHeader,
  Widget? drawerBody,
  double? elevation,
  bool? extendBodyBehindAppBar,
  Widget? drawerFooter,
  TextStyle? navTextStyle,
  bool? showFab,
  PageIndicator? pageIndicator,
  double? indicatorLineThickness,
  NavItemPosition? itemPosition,
  String? titleText,
  required Widget body,
  bool? enableDrawer,
  NavDrawerMode? drawerMode,
  Color? backgroundColor,
  double? MAX_PAGE_WIDTH,
  Widget? leading,
  double? navItemSpacing,
  List<Widget>? actions,
  List<NavItem>? navItems,
}) {
  _navBarInstance ??= SiteNavBar._SiteNavBar(
      type: type,
      title: title ?? Container(),
      enableDrawer: enableDrawer,
      body: body,
      fab: fab,
      elevation: elevation,
      extendBodyBehindAppBar: extendBodyBehindAppBar,
      customDecoration: customDecoration,
      drawerBody: drawerBody,
      drawerFooter: drawerFooter,
      drawerHeader: drawerHeader,
      navTextStyle: navTextStyle,
      navItemSpacing: navItemSpacing,
      showFab: showFab,
      navItemAnimation: navItemAnimation,
      indicatorLineThickness: indicatorLineThickness,
      pageIndicator: pageIndicator,
      MAX_PAGE_WIDTH: MAX_PAGE_WIDTH,
      itemsPosition: itemPosition,
      drawerMode: drawerMode,
      height: height ?? kToolbarHeight,
      titleText: titleText,
      backgroundColor: backgroundColor,
      appBarColor: appBarColor,
      drawerColor: drawerColor,
      actions: actions ?? [],
      items: navItems ?? [],
      leading: leading);
  return _navBarInstance!;
}