getAssetsFromEntity method
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();
}
}