我想无限滚动我的产品。我总共有 412 页。当我滚动到最后时,我想显示下一页的更多项目。这意味着无限滚动。这个怎么做?我已经实现了 ScrollController。
\n这是我的 Api:\n https://www.moharaj.com.bd/api/new/collection/products?page=1
\n这是我的模型类:
\n// To parse this JSON data, do\n//\n// final newCollectionProductModel = newCollectionProductModelFromJson(jsonString);\n\nimport \'dart:convert\';\n\nNewCollectionProductModel newCollectionProductModelFromJson(String str) =>\n NewCollectionProductModel.fromJson(json.decode(str));\n\nString newCollectionProductModelToJson(NewCollectionProductModel data) =>\n json.encode(data.toJson());\n\nclass NewCollectionProductModel {\n NewCollectionProductModel({\n required this.currentPage,\n required this.data,\n required this.firstPageUrl,\n required this.from,\n required this.lastPage,\n required this.lastPageUrl,\n required this.nextPageUrl,\n required this.path,\n required this.perPage,\n required this.prevPageUrl,\n required this.to,\n required this.total,\n });\n\n final int currentPage;\n final List<Datum> data;\n final String firstPageUrl;\n final int from;\n final int lastPage;\n final String lastPageUrl;\n final String nextPageUrl;\n …Run Code Online (Sandbox Code Playgroud)