currentPath property

PathWrapper<AssetPathEntity>? get currentPath
inherited

The path which is currently using. 正在查看的资源路径

Implementation

PathWrapper<Path>? get currentPath => _currentPath;
  1. @override
set currentPath (PathWrapper<AssetPathEntity>? value)
override

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