ATable<T> constructor

const ATable<T>({
  1. Key? key,
  2. required List<ATableColumn<T>> columns,
  3. EdgeInsets rowPadding = const EdgeInsets.all(8),
  4. bool striped = true,
  5. int loaderLimit = 100,
  6. void onItemClicked(
    1. T item
    )?,
  7. required Future<List<T>> loadItems(
    1. int limit,
    2. int offset
    ),
  8. Color? customRowColor(
    1. T
    )?,
  9. double fontSize = 14,
  10. double mobileBreakpointWidth = 400,
  11. double mobileHeaderWidth = 100,
  12. String emptyMessage = "Nenhum item encontrado",
})

Implementation

const ATable({
  super.key,
  required this.columns,
  this.rowPadding = const EdgeInsets.all(8),
  this.striped = true,
  this.loaderLimit = 100,
  this.onItemClicked,
  required this.loadItems,
  this.customRowColor,
  this.fontSize = 14,
  this.mobileBreakpointWidth = 400,
  this.mobileHeaderWidth = 100,
  this.emptyMessage = "Nenhum item encontrado",
});