FlexGrid<T> constructor
const
FlexGrid<T> ({
- HeaderBuilder? headerBuilder,
- required CellBuilder<
T> cellBuilder, - required LoadingMoreBase<
T> source, - required int columnsCount,
- int frozenedColumnsCount = 0,
- int frozenedRowsCount = 0,
- LinkScrollController? horizontalController,
- ScrollController? controller,
- ScrollPhysics? physics,
- RowWrapper<
T> ? rowWrapper, - CellStyle? headerStyle,
- CellStyle? cellStyle,
- LoadingMoreIndicatorBuilder? indicatorBuilder,
- ExtendedListDelegate? extendedListDelegate,
- HeadersBuilder? headersBuilder,
- Key? key,
- bool link = false,
- ScrollPhysics? horizontalPhysics,
- bool horizontalHighPerformance = false,
- bool verticalHighPerformance = false,
- bool showGlowLeading = false,
- bool showGlowTrailing = true,
- int frozenedTrailingColumnsCount = 0,
- bool showHorizontalGlowLeading = false,
- bool showHorizontalGlowTrailing = false,
- SliverHeadersBuilder? sliverHeadersBuilder,
- bool shrinkWrap = false,
- double? maxWidth,
- 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);