FutureListBuilder<T> constructor

const FutureListBuilder<T>({
  1. Key? key,
  2. required String url,
  3. required HttpMethod httpMethod,
  4. Map<String, String>? header,
  5. Map<String, dynamic>? body,
  6. List<Map>? dataGetter(
    1. Map
    )?,
  7. int? countGetter(
    1. Map
    )?,
  8. required T converter(
    1. Map<String, dynamic>
    ),
  9. required Widget itemBuilder(
    1. T data
    ),
  10. Axis scrollDirection = Axis.vertical,
  11. Widget shimmerBuilder()?,
  12. int shimmerCardsCount = 3,
  13. int paginationShimmerCardsCount = 3,
  14. Widget? onError(
    1. String?
    )?,
  15. void callBack(
    1. List<T>
    )?,
  16. bool pagination = false,
  17. String skipKey = "skip",
  18. String limitKey = "limit",
  19. int skip = 0,
  20. int limit = 6,
  21. int? successStatusCode = 200,
  22. required List<String> dataPath,
  23. List<String>? countPath,
  24. ScrollPhysics scrollPhysics = const BouncingScrollPhysics(),
})

Implementation

const FutureListBuilder({
  super.key,
  required this.url,
  required this.httpMethod,
  this.header,
  this.body,
  this.dataGetter,
  this.countGetter,
  required this.converter,
  required this.itemBuilder,
  this.scrollDirection = Axis.vertical,
  this.shimmerBuilder,
  this.shimmerCardsCount = 3,
  this.paginationShimmerCardsCount = 3,
  this.onError,
  this.callBack,
  this.pagination = false,
  this.skipKey = "skip",
  this.limitKey = "limit",
  this.skip = 0,
  this.limit = 6,
  this.successStatusCode = 200,
  required this.dataPath,
  this.countPath,
  this.scrollPhysics = const BouncingScrollPhysics(),
});