renderSuffixWidget method
Implementation
Widget renderSuffixWidget(BuildContext context) {
var clearIcon = renderClearIcon();
return Padding(
padding: const EdgeInsets.symmetric(
horizontal: 5,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
mainAxisSize: MainAxisSize.min,
children: [
if (displayClearIcon && clearIcon != null)
Padding(
padding: const EdgeInsets.only(
right: 5,
),
child: clearIcon,
),
if (sortWidget != null)
InkWell(
onTap: () {
FocusScope.of(context).requestFocus(
FocusNode(),
);
onSortTap?.call();
},
child: sortWidget,
),
],
),
);
}