FastSelectableListItem<T extends FastItem> constructor

FastSelectableListItem<T extends FastItem>({
  1. Key? key,
  2. required VoidCallback onTap,
  3. bool capitalizeLabelText = true,
  4. bool isSelected = false,
  5. bool isEnabled = true,
  6. bool isDense = true,
  7. Color? selectionTralingColor,
  8. Color? selectionLabelColor,
  9. String? descriptionText,
  10. EdgeInsets? contentPadding,
  11. Color? selectionColor,
  12. String? labelText,
  13. Widget? trailing,
  14. Widget? leading,
  15. T? item,
})

Implementation

FastSelectableListItem({
  Key? key,
  required this.onTap,
  this.capitalizeLabelText = true,
  this.isSelected = false,
  this.isEnabled = true,
  this.isDense = true,
  this.selectionTralingColor,
  this.selectionLabelColor,
  this.descriptionText,
  this.contentPadding,
  this.selectionColor,
  this.labelText,
  this.trailing,
  this.leading,
  this.item,
})  : assert(item?.labelText != null || labelText != null),
      super(key: key);