getAssetListRange static method

Future<List<AssetEntity>> getAssetListRange({
  1. required int start,
  2. required int end,
  3. PMFilter? filterOption,
  4. RequestType type = RequestType.common,
})

Get the asset list with range.

The start is base 0.

The end is not included.

The filterOption is used to filter the assets.

The type is used to filter the assets type.

Implementation

static Future<List<AssetEntity>> getAssetListRange({
  required int start,
  required int end,
  PMFilter? filterOption,
  RequestType type = RequestType.common,
}) async {
  assert(start >= 0, 'start must >= 0');
  assert(end >= 0, 'end must >= 0');
  assert(start < end, 'start must < end');
  return plugin.getAssetListWithRange(
    start: start,
    end: end,
    filterOption: filterOption,
    type: type,
  );
}