unSelectAsset method

void unSelectAsset(
  1. 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;
}