Sidebar constructor

const Sidebar({
  1. Key? key,
  2. required SidebarController controller,
  3. Color backgroundColor = const Color(0xFF263238),
  4. Color selectedColor = Colors.amber,
  5. Color unselectedColor = Colors.white70,
  6. Color hoverColor = Colors.blueGrey,
  7. double minWidth = 60,
  8. double maxWidth = 270,
  9. Duration animationDuration = const Duration(milliseconds: 300),
})

Implementation

const Sidebar({
  Key? key,
  required this.controller,
  this.backgroundColor = const Color(0xFF263238),
  this.selectedColor = Colors.amber,
  this.unselectedColor = Colors.white70,
  this.hoverColor = Colors.blueGrey,
  this.minWidth = 60,
  this.maxWidth = 270,
  this.animationDuration = const Duration(milliseconds: 300),
}) : super(key: key);