DatatableHeader constructor

DatatableHeader({
  1. required String text,
  2. required String value,
  3. TextAlign textAlign = TextAlign.center,
  4. bool sortable = false,
  5. bool show = true,
  6. bool editable = false,
  7. bool withButtonClear = false,
  8. int flex = 1,
  9. DataTableFormat format = DataTableFormat.normal,
  10. Widget headerBuilder(
    1. dynamic value
    )?,
  11. Widget sourceBuilder(
    1. dynamic value,
    2. Map<String?, dynamic> row
    )?,
  12. List<String> items = const [],
  13. List<TextInputFormatter>? textInputFormatter,
})

Implementation

DatatableHeader({
  required this.text,
  required this.value,
  this.textAlign = TextAlign.center,
  this.sortable = false,
  this.show = true,
  this.editable = false,
  this.withButtonClear = false,
  this.flex = 1,
  this.format = DataTableFormat.normal,
  this.headerBuilder,
  this.sourceBuilder,
  this.items = const [],
  this.textInputFormatter,
});