ListItem constructor

const ListItem({
  1. Key? key,
  2. String title = 'Title of the list item',
  3. String? subtitle = 'Subtitle of the list item',
  4. bool hasSubtitle = true,
  5. bool hasLeftSlot = true,
  6. bool hasRightSlotOne = true,
  7. bool hasRightSlotTwo = true,
  8. Widget? leftSlot,
  9. Widget? rightSlotOne,
  10. Widget? rightSlotTwo,
  11. VoidCallback? onTap,
})

Implementation

const ListItem({
  super.key,
  this.title = 'Title of the list item',
  this.subtitle = 'Subtitle of the list item',
  this.hasSubtitle = true,
  this.hasLeftSlot = true,
  this.hasRightSlotOne = true,
  this.hasRightSlotTwo = true,
  this.leftSlot,
  this.rightSlotOne,
  this.rightSlotTwo,
  this.onTap,
});