SlideDrawer constructor

const SlideDrawer({
  1. Key? key,
  2. List<MenuItem> items = const [],
  3. Widget? drawer,
  4. Widget? headDrawer,
  5. Widget? contentDrawer,
  6. required Widget child,
  7. Gradient? backgroundGradient,
  8. Color? backgroundColor,
  9. Brightness? brightness,
  10. Duration duration = const Duration(milliseconds: 300),
  11. Curve curve = Curves.easeInOut,
  12. Duration? reverseDuration,
  13. Curve? reverseCurve,
  14. SlideDrawerAlignment? alignment,
  15. double offsetFromRight = 60.0,
  16. double rotateAngle = (pi / 24),
  17. bool isRotate = true,
  18. Function? onWillPop,
})

Implementation

const SlideDrawer({
  Key? key,
  this.items = const [],
  this.drawer,
  this.headDrawer,
  this.contentDrawer,
  required this.child,
  this.backgroundGradient,
  this.backgroundColor,
  this.brightness,
  this.duration = const Duration(milliseconds: 300),
  this.curve = Curves.easeInOut,
  this.reverseDuration,
  this.reverseCurve,
  this.alignment,
  this.offsetFromRight = 60.0,
  this.rotateAngle = (pi / 24),
  this.isRotate = true,
  this.onWillPop,
}) : super(key: key);