Drawer constructor

const Drawer({
  1. Key? key,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. ShapeBorder? shape,
  7. double? width,
  8. Widget? child,
  9. String? semanticLabel,
  10. Clip? clipBehavior,
})

Creates a Material Design drawer.

Typically used in the Scaffold.drawer property.

The elevation must be non-negative.

Implementation

const Drawer({
  super.key,
  this.backgroundColor,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.shape,
  this.width,
  this.child,
  this.semanticLabel,
  this.clipBehavior,
}) : assert(elevation == null || elevation >= 0.0);