SlideDrawer constructor
const
SlideDrawer({
- Key? key,
- List<
MenuItem> items = const [], - Widget? drawer,
- Widget? headDrawer,
- Widget? contentDrawer,
- required Widget child,
- Gradient? backgroundGradient,
- Color? backgroundColor,
- Brightness? brightness,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOut,
- Duration? reverseDuration,
- Curve? reverseCurve,
- SlideDrawerAlignment? alignment,
- double offsetFromRight = 60.0,
- double rotateAngle = (pi / 24),
- bool isRotate = true,
- 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);