getAssetsFromPath method

  1. @override
Future<void> getAssetsFromPath(
  1. int page,
  2. AssetPathEntity path
)
override

Get assets under the specific path entity. 获取指定路径下的资源

Implementation

@override
Future<void> getAssetsFromPath(int page, AssetPathEntity path) async {
  final List<AssetEntity> list = await path.getAssetListPaged(
    page: page,
    size: pageSize,
  );
  _currentAssets = list.toList();
  _hasAssetsToDisplay = currentAssets.isNotEmpty;
  notifyListeners();
}