Drawer constructor Null safety

const Drawer(
  1. {Key? key,
  2. double elevation,
  3. Widget? child,
  4. String? semanticLabel}
)

Creates a material design drawer.

Typically used in the Scaffold.drawer property.

The elevation must be non-negative.

Implementation

const Drawer({
  Key? key,
  this.elevation = 16.0,
  this.child,
  this.semanticLabel,
}) : assert(elevation != null && elevation >= 0.0),
     super(key: key);