setPathThumbnail method
Set thumbnail data
for the specific path
.
为指定的路径设置缩略图数据
Implementation
void setPathThumbnail(Path path, Uint8List? data) {
final int index = _paths.indexWhere(
(PathWrapper<Path> w) => w.path == path,
);
if (index != -1) {
final PathWrapper<Path> newWrapper = _paths[index].copyWith(
thumbnailData: data,
);
_paths[index] = newWrapper;
notifyListeners();
}
}