resetPathList method
void
resetPathList(})
add assets to a list
Implementation
void resetPathList(
List<AssetPathEntity> list, {
int defaultIndex = 0,
int Function(
AssetPathEntity a,
AssetPathEntity b,
) sortBy = _defaultSort,
}) {
list.sort(sortBy);
pathList.clear();
pathList.addAll(list);
currentAlbum = list.isNotEmpty ? list[defaultIndex] : null;
pathListNotifier.value = pathList;
notifyListeners();
}