loadAssetPath method
Load asset path
Implementation
Future<void> loadAssetPath(AssetPathEntity assetPath) async {
final List<AssetEntity> entities = await assetPath.getAssetListPaged(
page: 0,
size: dataStore.sizePerPage,
);
dataStore.pathData[assetPath.id] = ValueNotifier<List<AssetEntity>>(<AssetEntity>[]);
dataStore.pathData[assetPath.id]!.value = entities;
dataStore.totalEntitiesCount[assetPath.id] = await assetPath.assetCountAsync;
dataStore.pages[assetPath.id] = 0;
dataStore.hasMoreToLoad[assetPath.id] =
entities.length < dataStore.totalEntitiesCount[assetPath.id]!;
}