AppDrawer constructor
AppDrawer({
- Key? key,
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- double? width,
- DrawerHeader? header,
- List<
Widget> ? children, - String? semanticLabel,
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- EdgeInsetsGeometry? padding,
- double? itemExtent,
- Widget? prototypeItem,
- bool? addAutomaticKeepAlives,
- bool? addRepaintBoundaries,
- bool? addSemanticIndexes,
Supply the properties to a Material Design Drawer Widget.
Implementation
AppDrawer({
super.key,
this.backgroundColor,
this.elevation,
this.shadowColor,
this.surfaceTintColor,
this.shape,
this.width,
this.header,
this.children,
this.semanticLabel,
this.scrollDirection,
this.reverse,
this.controller,
this.primary,
this.physics,
this.shrinkWrap,
this.padding,
this.itemExtent,
this.prototypeItem,
this.addAutomaticKeepAlives,
this.addRepaintBoundaries,
this.addSemanticIndexes,
}) {
// Take any defined items.
if (children != null) {
_children.addAll(children!);
}
}