selectAsset method

void selectAsset(
  1. Asset entity
)

Implementation

void selectAsset(Asset entity) {
  if (maxAssets != null && selectedCount >= maxAssets!) {
    return;
  }
  provider?.selectAsset(entity);
  selectorProvider?.selectAsset(entity);
  if (!isSelectedPreviewing) {
    selectedAssets?.add(entity);
  }
  selectedNotifier.value = selectedCount;
}