FlatList<T> constructor

const FlatList<T>({
  1. Key? key,
  2. required List<T> data,
  3. required ItemBuilder<T> buildItem,
  4. Widget? listHeaderWidget,
  5. Widget? listFooterWidget,
  6. Widget? listEmptyWidget,
  7. Widget? listLoadingWidget,
  8. Widget? itemSeparatorWidget,
  9. bool loading = false,
  10. int numColumns = 1,
  11. double onEndReachedDelta = 200,
  12. VoidCallback? onEndReached,
  13. dynamic onScroll(
    1. double maxScroll,
    2. double currentScroll
    )?,
  14. RefreshCallback? onRefresh,
  15. Color? refreshIndicatorColor,
  16. double refreshIndicatorStrokeWidth = 2.0,
  17. double childAspectRatio = 1,
  18. double mainAxisSpacing = 10,
  19. double crossAxisSpacing = 10,
  20. bool horizontal = false,
  21. ScrollController? controller,
  22. bool inverted = false,
})

Implementation

const FlatList({
  super.key,
  required this.data,
  required this.buildItem,
  this.listHeaderWidget,
  this.listFooterWidget,
  this.listEmptyWidget,
  this.listLoadingWidget,
  this.itemSeparatorWidget,
  this.loading = false,
  this.numColumns = 1,
  this.onEndReachedDelta = 200,
  this.onEndReached,
  this.onScroll,
  this.onRefresh,
  this.refreshIndicatorColor,
  this.refreshIndicatorStrokeWidth = 2.0,
  this.childAspectRatio = 1,
  this.mainAxisSpacing = 10,
  this.crossAxisSpacing = 10,
  this.horizontal = false,
  this.controller,
  this.inverted = false,
});