File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,24 @@ class DefaultAssetPickerProvider
249
249
});
250
250
}
251
251
252
+ @visibleForTesting
253
+ DefaultAssetPickerProvider .forTest ({
254
+ List <AssetEntity >? selectedAssets,
255
+ this .requestType = RequestType .image,
256
+ this .sortPathDelegate = SortPathDelegate .common,
257
+ this .filterOptions,
258
+ int maxAssets = 9 ,
259
+ int pageSize = 80 ,
260
+ ThumbnailSize pathThumbnailSize = const ThumbnailSize .square (80 ),
261
+ }) : super (
262
+ maxAssets: maxAssets,
263
+ pageSize: pageSize,
264
+ pathThumbnailSize: pathThumbnailSize,
265
+ selectedAssets: selectedAssets,
266
+ ) {
267
+ Singleton .sortPathDelegate = sortPathDelegate ?? SortPathDelegate .common;
268
+ }
269
+
252
270
/// Request assets type.
253
271
/// 请求的资源类型
254
272
final RequestType requestType;
You can’t perform that action at this time.
0 commit comments