getDismissOrRightIcon method

Widget? getDismissOrRightIcon()

Implementation

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