TTransferList<T> constructor

const TTransferList<T>({
  1. Key? key,
  2. required List<T> sourceItems,
  3. required List<T> targetItems,
  4. required ValueChanged<List<T>> onTargetChanged,
  5. ValueChanged<List<T>>? onSourceChanged,
  6. String itemLabel(
    1. T item
    )?,
  7. String itemSubtitle(
    1. T item
    )?,
  8. Widget itemBuilder(
    1. BuildContext context,
    2. T item,
    3. bool isChecked
    )?,
  9. bool itemDisabled(
    1. T item
    )?,
  10. String sourceTitle = 'Available',
  11. String targetTitle = 'Selected',
  12. bool showSearch = true,
  13. bool showSelectAll = true,
  14. bool allowReordering = false,
  15. double height = 360.0,
  16. double boxWidth = 260.0,
})

Implementation

const TTransferList({
  super.key,
  required this.sourceItems,
  required this.targetItems,
  required this.onTargetChanged,
  this.onSourceChanged,
  this.itemLabel,
  this.itemSubtitle,
  this.itemBuilder,
  this.itemDisabled,
  this.sourceTitle = 'Available',
  this.targetTitle = 'Selected',
  this.showSearch = true,
  this.showSelectAll = true,
  this.allowReordering = false,
  this.height = 360.0,
  this.boxWidth = 260.0,
});