Skip to content

Commit

Permalink
Add null builder in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunetee committed Oct 17, 2024
1 parent caaa1a2 commit 67ce52a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions example/lib/constants/picker_method.dart
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,29 @@ class PickMethod {
);
},
),
//builder which return null will not be shown.
SpecialItem(
position: SpecialItemPosition.append,
builder: (
BuildContext context,
AssetPathEntity? path,
int length,
PermissionState permissionState,
) {
return null;
},
),
SpecialItem(
position: SpecialItemPosition.prepend,
builder: (
BuildContext context,
AssetPathEntity? path,
int length,
PermissionState permissionState,
) {
return null;
},
),
],
),
);
Expand Down

0 comments on commit 67ce52a

Please sign in to comment.