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