SideBar constructor

const SideBar({
  1. Key? key,
  2. required Widget body,
  3. SideBarController? controller,
  4. Widget? menu,
  5. Widget? submenu,
  6. SlideBarModalBackgroundColor modalBackgroundColor = SlideBarModalBackgroundColor.black,
  7. double modalBackgroundOpacity = 0.4,
  8. BodyBehavior bodyBehavior = BodyBehavior.move,
  9. MenuOpenMode menuOpenMode = MenuOpenMode.basic,
  10. MenuCloseMode menuCloseMode = MenuCloseMode.basic,
  11. SubMenuOpenMode subMenuOpenMode = SubMenuOpenMode.floating,
  12. double menuWidth = double.infinity,
  13. double menuNarrowWidth = 64,
  14. double menuSpacing = 0,
  15. double subMenuWidth = double.infinity,
  16. int duration = 300,
  17. double elevation = 12,
  18. double verticalSeparatorThickness = 0,
  19. Color verticalSeparatorColor = Colors.black54,
  20. MenuLocation menuLocation = MenuLocation.left,
  21. dynamic isMenuOpenChanged(
    1. bool
    )?,
  22. dynamic isSubMenuOpenChanged(
    1. bool
    )?,
})

Implementation

const SideBar(
    {Key? key,
    required this.body,
    this.controller,
    this.menu,
    this.submenu,
    this.modalBackgroundColor = SlideBarModalBackgroundColor.black,
    this.modalBackgroundOpacity = 0.4,
    this.bodyBehavior = BodyBehavior.move,
    this.menuOpenMode = MenuOpenMode.basic,
    this.menuCloseMode = MenuCloseMode.basic,
    this.subMenuOpenMode = SubMenuOpenMode.floating,
    this.menuWidth = double.infinity,
    this.menuNarrowWidth = 64,
    this.menuSpacing = 0,
    this.subMenuWidth = double.infinity,
    this.duration = 300,
    this.elevation = 12,
    this.verticalSeparatorThickness = 0,
    this.verticalSeparatorColor = Colors.black54,
    this.menuLocation = MenuLocation.left,
    this.isMenuOpenChanged,
    this.isSubMenuOpenChanged})
    : super(key: key);