getAssetsFromEntity method

  1. @override
Future<void> getAssetsFromEntity(
  1. int page,
  2. AssetPathEntity pathEntity
)
override

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

Implementation

@override
Future<void> getAssetsFromEntity(int page, AssetPathEntity pathEntity) async {
  _currentAssets.clear();
  _currentAssets = (await pathEntity.getAssetListPaged(
    page: page,
    size: pageSize,
  )).toList();

  // _currentAssets = _currentAssets.toSet().toList();
  _hasAssetsToDisplay = currentAssets.isNotEmpty;
  if(mounted){
    notifyListeners();
  }
}