GenericListView<T> constructor

const GenericListView<T>({
  1. dynamic onRefresh,
  2. ListViewType type = ListViewType.normal,
  3. GenericBloc<List<T>>? cubit,
  4. GenericBuilder? itemBuilder,
  5. List? params,
  6. List<Widget> children = const [],
  7. Color? dividerColor,
  8. String? emptyStr,
  9. Color? refreshBg,
  10. EdgeInsets padding = EdgeInsets.zero,
  11. Color? loadingColor,
  12. double spacing = 10,
  13. double runSpacing = 10,
  14. double gridItemHeight = 100,
  15. int gridCrossCount = 2,
})

Implementation

const GenericListView({
  this.onRefresh,
  this.type = ListViewType.normal,
  this.cubit,
  this.itemBuilder,
  this.params,
  this.children = const [],
  this.dividerColor,
  this.emptyStr,
  this.refreshBg,
  this.padding = EdgeInsets.zero,
  this.loadingColor,
  this.spacing = 10,
  this.runSpacing = 10,
  this.gridItemHeight = 100,
  this.gridCrossCount = 2,
});