MenuItem constructor

const MenuItem({
  1. Key? key,
  2. required Widget child,
  3. bool danger = false,
  4. bool disabled = false,
  5. Widget? icon,
  6. required String name,
  7. String? title,
})

Implementation

const MenuItem({
  Key? key,
  required this.child,
  this.danger = false,
  this.disabled = false,
  this.icon,
  required this.name,
  this.title,
}) : super(key: key);