const DrawerItem({Key key, Widget icon: const Icon(null), Widget child, VoidCallback onPressed, bool selected: false })

Creates a material design drawer item.

Requires one of its ancestors to be a Material widget.

Source

const DrawerItem({
  Key key,
  this.icon: const Icon(null),
  this.child,
  this.onPressed,
  this.selected: false
}) : super(key: key);