loadMoreAssets method
Load more assets. 加载更多资源
Implementation
@override
Future<void> loadMoreAssets() async {
final List<AssetEntity> assets =
(await currentPathEntity!.getAssetListPaged(
currentAssetsListPage,
pageSize,
))
.toList();
if (assets.isNotEmpty && currentAssets.contains(assets[0])) {
return;
}
final List<AssetEntity> tempList = <AssetEntity>[];
tempList.addAll(_currentAssets);
tempList.addAll(assets);
currentAssets = tempList;
}