GrockPopupMenuItem constructor

GrockPopupMenuItem({
  1. required String title,
  2. Widget? child,
  3. String? subtitle,
  4. Widget? trailing,
  5. TextStyle? titleTextStyle,
  6. TextStyle? subtitleTextStyle,
  7. double height = 40,
  8. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 12),
  9. EdgeInsetsGeometry? margin = EdgeInsets.zero,
  10. dynamic onTap(
    1. int index
    )?,
})

Implementation

GrockPopupMenuItem({
  required this.title,
  this.child,
  this.subtitle,
  this.trailing,
  this.titleTextStyle,
  this.subtitleTextStyle,
  this.height = 40,
  this.padding = const EdgeInsets.symmetric(horizontal: 12),
  this.margin = EdgeInsets.zero,
  this.onTap,
});