buildClearIcon method

Widget buildClearIcon(
  1. BuildContext context
)

Implementation

Widget buildClearIcon(BuildContext context) {
  if (widget.clearSearchIcon != null) {
    return widget.clearSearchIcon!;
  }

  final useProIcons = FastIconHelper.of(context).useProIcons;

  if (useProIcons) {
    return const FaIcon(FastFontAwesomeIcons.lightEraser);
  }

  return const FaIcon(FontAwesomeIcons.eraser);
}