AppDrawer constructor

AppDrawer({
  1. Key? key,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. ShapeBorder? shape,
  7. double? width,
  8. DrawerHeader? header,
  9. List<Widget>? children,
  10. String? semanticLabel,
  11. Axis? scrollDirection,
  12. bool? reverse,
  13. ScrollController? controller,
  14. bool? primary,
  15. ScrollPhysics? physics,
  16. bool? shrinkWrap,
  17. EdgeInsetsGeometry? padding,
  18. double? itemExtent,
  19. Widget? prototypeItem,
  20. bool? addAutomaticKeepAlives,
  21. bool? addRepaintBoundaries,
  22. 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!);
  }
}