resetToDefault property
If true
then Clear All
action would reset the filter values to default
values. User must define the defaultValues
prop when resetToDefault
is true
.
For example,
SelectedFilters(
...
resetToDefault: true,
defaultValues: () {
"price-filter": { start: 10000 }
},
...
)
Implementation
final bool? resetToDefault;