UserAccountsDrawerHeader constructor

const UserAccountsDrawerHeader(
  1. {Key key,
  2. Decoration decoration,
  3. EdgeInsetsGeometry margin: const EdgeInsets.only(bottom: 8.0),
  4. Widget currentAccountPicture,
  5. List<Widget> otherAccountsPictures,
  6. @required Widget accountName,
  7. @required Widget accountEmail,
  8. VoidCallback onDetailsPressed,
  9. Color arrowColor: Colors.white}
)

Creates a material design drawer header.

Requires one of its ancestors to be a Material widget.

Implementation

const UserAccountsDrawerHeader({
  Key key,
  this.decoration,
  this.margin = const EdgeInsets.only(bottom: 8.0),
  this.currentAccountPicture,
  this.otherAccountsPictures,
  @required this.accountName,
  @required this.accountEmail,
  this.onDetailsPressed,
  this.arrowColor = Colors.white,
}) : super(key: key);