getAssetListPaged static method
Future<List<AssetEntity> >
getAssetListPaged({
- required int page,
- required int pageCount,
- PMFilter? filterOption,
- RequestType type = RequestType.common,
Get the asset list with page.
The page
is base 0.
The pageCount
is the count of each page.
The filterOption
is used to filter the assets.
The type
is used to filter the assets type.
Implementation
static Future<List<AssetEntity>> getAssetListPaged({
required int page,
required int pageCount,
PMFilter? filterOption,
RequestType type = RequestType.common,
}) async {
assert(page >= 0, 'page must >= 0');
assert(pageCount > 0, 'pageCount must > 0');
final start = page * pageCount;
final end = start + pageCount;
return getAssetListRange(
start: start,
end: end,
filterOption: filterOption,
type: type,
);
}