onClear Function with no parameter not returning executed when the clear icon is tapped.
final Function? onClear;