selectAsset method

void selectAsset(
  1. Asset entity
)

Implementation

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