selectAsset method
void
selectAsset(
- 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;
}
}