currentPath property
The path which is currently using. 正在查看的资源路径
Implementation
PathWrapper<Path>? get currentPath => _currentPath;
Implementation
@override
set currentPath(PathWrapper<AssetPathEntity>? value) {
if (value == _currentPath) {
return;
}
_currentPath = value;
if (value != null) {
final int index = _paths.indexWhere(
(PathWrapper<AssetPathEntity> p) => p.path.id == value.path.id,
);
if (index != -1) {
_paths[index] = value;
getThumbnailFromPath(value);
}
}
notifyListeners();
}