ResusableDatagridW<T> constructor

ResusableDatagridW<T>({
  1. Key? key,
  2. required List<T> data,
  3. required List<Field<T>> fields,
  4. required DateTime? lastSaveDate,
  5. required double headerHeight,
  6. required double footerHeight,
  7. void onRowClick(
    1. T
    )?,
  8. void onCreateClick()?,
  9. double rowHeight = 30,
  10. Field<T>? identityFieldId = null,
  11. void onSelectHeaderButton(
    1. List<String>
    )?,
  12. String selectName = "select",
  13. List<T>? selectedIds,
  14. void onCheckboxChange(
    1. List<String>
    )?,
  15. double? maxHeight,
  16. double fontSize = 12,
  17. double columnSpacing = 10,
  18. double horizontalMargin = 10,
})

fields definition of fields to display lastSaveDate change this field to update the list with new data (can't do a compare of thousands of records nicely)

Implementation

ResusableDatagridW({
  Key? key,
  required this.data,
  required this.fields,
  required this.lastSaveDate,
  required this.headerHeight,
  required this.footerHeight,
  this.onRowClick,
  this.onCreateClick,
  this.rowHeight = 30,
  this.identityFieldId = null,
  this.onSelectHeaderButton,
  this.selectName = "select",
  this.selectedIds,
  this.onCheckboxChange,
  this.maxHeight,
  this.fontSize = 12,
  this.columnSpacing = 10,
  this.horizontalMargin = 10,
}) : super(key: key);