DrawerItem constructor

const DrawerItem({
  1. required String label,
  2. String? subtitle,
  3. IconData? icon,
  4. Widget? trailing,
  5. VoidCallback? onTap,
  6. bool selected = false,
  7. bool enabled = true,
  8. bool closeOnTap = true,
  9. bool isDivider = false,
})

Implementation

const DrawerItem({
  required this.label,
  this.subtitle,
  this.icon,
  this.trailing,
  this.onTap,
  this.selected = false,
  this.enabled = true,
  this.closeOnTap = true,
  this.isDivider = false,
});