AssetPickerViewerProvider<A> constructor
Copy selected assets for editing when constructing. 构造时深拷贝已选择的资源集合,用于后续编辑。
Implementation
AssetPickerViewerProvider(
List<A>? assets, {
this.maxAssets = defaultMaxAssetsCount,
}) : assert(maxAssets > 0, 'maxAssets must be greater than 0.') {
_currentlySelectedAssets = (assets ?? <A>[]).toList();
}