handleTap method

void handleTap(
  1. BuildContext context
)

Implementation

void handleTap(BuildContext context) {
  if (widget.onTap != null) {
    widget.onTap!();
  } else {
    if (context.canPop()) {
      context.pop();
    }
  }
}