FlexGrid<T> constructor

const FlexGrid<T>({
  1. HeaderBuilder? headerBuilder,
  2. required CellBuilder<T> cellBuilder,
  3. required LoadingMoreBase<T> source,
  4. required int columnsCount,
  5. int frozenedColumnsCount = 0,
  6. int frozenedRowsCount = 0,
  7. LinkScrollController? horizontalController,
  8. ScrollController? controller,
  9. ScrollPhysics? physics,
  10. RowWrapper<T>? rowWrapper,
  11. CellStyle? headerStyle,
  12. CellStyle? cellStyle,
  13. LoadingMoreIndicatorBuilder? indicatorBuilder,
  14. ExtendedListDelegate? extendedListDelegate,
  15. HeadersBuilder? headersBuilder,
  16. Key? key,
  17. bool link = false,
  18. ScrollPhysics? horizontalPhysics,
  19. bool horizontalHighPerformance = false,
  20. bool verticalHighPerformance = false,
  21. bool showGlowLeading = false,
  22. bool showGlowTrailing = true,
  23. int frozenedTrailingColumnsCount = 0,
  24. bool showHorizontalGlowLeading = false,
  25. bool showHorizontalGlowTrailing = false,
  26. FooterBuilder? footerBuilder,
  27. CellStyle? footerStyle,
  28. SliverHeadersBuilder? sliverHeadersBuilder,
  29. bool shrinkWrap = false,
  30. double? maxWidth,
  31. double? cacheExtent,
})

Implementation

const FlexGrid({
  this.headerBuilder,
  required this.cellBuilder,
  required this.source,
  required this.columnsCount,
  this.frozenedColumnsCount = 0,
  this.frozenedRowsCount = 0,
  this.horizontalController,
  this.controller,
  this.physics,
  this.rowWrapper,
  this.headerStyle,
  this.cellStyle,
  //this.prototypeCell,
  this.indicatorBuilder,
  this.extendedListDelegate,
  this.headersBuilder,
  Key? key,
  this.link = false,
  this.horizontalPhysics,
  this.horizontalHighPerformance = false,
  this.verticalHighPerformance = false,
  this.showGlowLeading = false,
  this.showGlowTrailing = true,
  this.frozenedTrailingColumnsCount = 0,
  this.showHorizontalGlowLeading = false,
  this.showHorizontalGlowTrailing = false,
  this.footerBuilder,
  this.footerStyle,
  this.sliverHeadersBuilder,
  this.shrinkWrap = false,
  this.maxWidth,
  this.cacheExtent,
})  : assert(columnsCount != 0),
      assert(frozenedColumnsCount != null && frozenedColumnsCount >= 0),
      assert(frozenedRowsCount != null && frozenedRowsCount >= 0),
      assert(frozenedTrailingColumnsCount != null &&
          frozenedTrailingColumnsCount >= 0),
      assert(columnsCount -
              frozenedColumnsCount -
              frozenedTrailingColumnsCount >=
          0),
      super(key: key);