SeniorMenuItemList constructor

const SeniorMenuItemList({
  1. Key? key,
  2. Widget? leading,
  3. required String title,
  4. VoidCallback? onTap,
  5. String? subtitle,
  6. bool enabled = true,
  7. double leftPadding = 0,
  8. double rightPadding = 0,
  9. SeniorMenuListItemStyle? style,
  10. int titleMaxLines = 1,
})

Creates a menu list item according to SDS.

The title parameter is required.

Implementation

const SeniorMenuItemList({
  Key? key,
  this.leading,
  required this.title,
  this.onTap,
  this.subtitle,
  this.enabled = true,
  this.leftPadding = 0,
  this.rightPadding = 0,
  this.style,
  this.titleMaxLines = 1,
}) : super(key: key);