onListItems method

ListItems<T> onListItems({
  1. String? title,
  2. List<FieldWidgets<T>>? items,
  3. MapItemFunction? mapItem,
  4. GestureTapCallback? onTap,
  5. ValueChanged<String?>? onChanged,
  6. List<String>? dropItems,
})

Implementation

ListItems<T> onListItems({
  String? title,
  List<FieldWidgets<T>>? items,
  MapItemFunction? mapItem,
  GestureTapCallback? onTap,
  ValueChanged<String?>? onChanged,
  List<String>? dropItems,
}) {
  return ListItems<T>(
    this,
    title: title ?? label,
    items: items ?? this.items as List<DataFieldItem>?,
    mapItem: mapItem,
    onTap: onTap,
    onChanged: onChanged,
    dropItems: dropItems ?? onDropItems() ?? [''],
  );
}