Skip to content

Commit 78bd4db

Browse files
committed
Add null builder in example.
1 parent fc43aab commit 78bd4db

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

example/lib/constants/picker_method.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,29 @@ class PickMethod {
369369
);
370370
},
371371
),
372+
//builder which return null will not be shown.
373+
SpecialItem(
374+
position: SpecialItemPosition.append,
375+
builder: (
376+
BuildContext context,
377+
AssetPathEntity? path,
378+
int length,
379+
PermissionState permissionState,
380+
) {
381+
return null;
382+
},
383+
),
384+
SpecialItem(
385+
position: SpecialItemPosition.prepend,
386+
builder: (
387+
BuildContext context,
388+
AssetPathEntity? path,
389+
int length,
390+
PermissionState permissionState,
391+
) {
392+
return null;
393+
},
394+
),
372395
],
373396
),
374397
);

0 commit comments

Comments
 (0)