SideBar constructor
const
SideBar({
- Key? key,
- required Widget body,
- SideBarController? controller,
- SlideBarModalBackgroundColor modalBackgroundColor = SlideBarModalBackgroundColor.black,
- double modalBackgroundOpacity = 0.4,
- BodyBehavior bodyBehavior = BodyBehavior.move,
- SubMenuOpenMode subMenuOpenMode = SubMenuOpenMode.floating,
- double subMenuWidth = double.infinity,
- int duration = 300,
- double elevation = 12,
- double verticalSeparatorThickness = 0,
- Color verticalSeparatorColor = Colors.black54,
- dynamic isMenuOpenChanged()?,
- dynamic isSubMenuOpenChanged()?,
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);