getCustomButtonIcon method
Implementation
Icon getCustomButtonIcon(BuildContext context) {
clearButtonColor ??= Theme.of(context).primaryColor;
if (widget.clearButtonIcon != null) {
return Icon(
widget.clearButtonIcon,
color: clearButtonColor,
);
}
return Icon(
Icons.clear,
color: clearButtonColor,
);
}