ActionItem constructor

const ActionItem({
  1. required String id,
  2. required String title,
  3. String? iconUrl,
  4. String? iconUrlPackageName,
  5. Color? iconTint,
  6. Color? iconBackground,
  7. double? iconCornerRadius,
  8. Color? background,
  9. double? cornerRadius,
  10. TextStyle? titleStyle,
  11. dynamic onItemClick,
})

ActionItem constructor requires id and title while initializing.

Implementation

const ActionItem(
    {required this.id,
    required this.title,
    this.iconUrl,
    this.iconUrlPackageName,
    this.iconTint,
    this.iconBackground,
    this.iconCornerRadius,
    this.background,
    this.cornerRadius,
    // this.actionCallBack,
    this.titleStyle,
    this.onItemClick});