getDismissOrRightIcon method
Implementation
Widget? getDismissOrRightIcon() {
if (onRightIconTap != null && rightIcon == null) {
return GestureDetector(
onTap: onRightIconTap,
child: getDismissIconImage(),
);
} else {
return getRightIcon();
}
}