getAssetListPaged method
Entity list with pagination support.
page
should starts with and greater than 0.
size
is item count of current page
.
The length of returned assets might be less than requested. Not existing assets will be excluded from the result.
Implementation
Future<List<AssetEntity>> getAssetListPaged({
required int page,
required int size,
}) {
assert(albumType == 1, 'Only album can request for assets.');
assert(size > 0, 'Page size must be greater than 0.');
return plugin.getAssetListPaged(
id,
page: page,
size: size,
type: type,
optionGroup: filterOption,
);
}