DrawerHeader constructor

const DrawerHeader({
  1. Key? key,
  2. Decoration? decoration,
  3. EdgeInsetsGeometry? margin = const EdgeInsets.only(bottom: 8.0),
  4. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 8.0),
  5. Duration duration = const Duration(milliseconds: 250),
  6. Curve curve = Curves.fastOutSlowIn,
  7. required Widget? child,
})

Creates a Material Design drawer header.

Requires one of its ancestors to be a Material widget.

Implementation

const DrawerHeader({
  super.key,
  this.decoration,
  this.margin = const EdgeInsets.only(bottom: 8.0),
  this.padding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 8.0),
  this.duration = const Duration(milliseconds: 250),
  this.curve = Curves.fastOutSlowIn,
  required this.child,
});