unSelectAsset method
void
unSelectAsset(
- A item
Un-select asset. 取消选中资源
Implementation
void unSelectAsset(A item) {
if (currentlySelectedAssets.isEmpty ||
!currentlySelectedAssets.contains(item)) {
return;
}
final List<A> newList = _currentlySelectedAssets.toList()..remove(item);
currentlySelectedAssets = newList;
}