FastToggleListItem<T extends FastItem> constructor

FastToggleListItem<T extends FastItem>({
  1. Key? key,
  2. required ValueChanged<bool> onValueChanged,
  3. bool isChecked = false,
  4. bool isEnabled = true,
  5. bool isDense = true,
  6. String? descriptionText,
  7. String? labelText,
  8. Widget? leading,
  9. T? item,
})

Implementation

FastToggleListItem({
  Key? key,
  required this.onValueChanged,
  this.isChecked = false,
  this.isEnabled = true,
  this.isDense = true,
  this.descriptionText,
  this.labelText,
  this.leading,
  this.item,
})  : assert(item?.labelText != null || labelText != null),
      super(key: key);