PlexDataTable constructor

PlexDataTable({
  1. Key? key,
  2. required List<PlexDataCell> columns,
  3. required List<List<PlexDataCell>>? rows,
  4. dynamic onRefresh()?,
  5. dynamic onLoadMore(
    1. int page
    )?,
  6. bool enableSearch = true,
  7. bool enableCopy = true,
  8. bool enablePrint = true,
  9. Color? headerBackground,
  10. TextStyle? headerTextStyle,
  11. Color? alternateColor = const Color(0xFFA8A8A8),
  12. TableBorder? border,
  13. double? columnSpacing,
  14. bool showShimmer = true,
})

Implementation

PlexDataTable({
  Key? key,
  required this.columns,
  required this.rows,
  this.onRefresh,
  this.onLoadMore,
  this.enableSearch = true,
  this.enableCopy = true,
  this.enablePrint = true,
  this.headerBackground,
  this.headerTextStyle,
  this.alternateColor = const Color(0xFFA8A8A8),
  this.border,
  this.columnSpacing,
  this.showShimmer = true,
}) : super(key: key ?? GlobalKey());