DrawerModifier constructor

const DrawerModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Color? backgroundColor,
  5. double? elevation,
  6. ShapeBorder? shape,
  7. double? width,
  8. String? semanticLabel,
})

Creates a Material Design drawer.

Typically used in the Scaffold.drawer property.

The elevation must be non-negative.

Implementation

const DrawerModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.backgroundColor,
  this.elevation,
  this.shape,
  this.width,
  this.semanticLabel,
});