onClick method

GestureRecognizer? onClick(
  1. OnViewClickListener? callback
)

Implementation

GestureRecognizer? onClick(OnViewClickListener? callback) {
  if (callback != null) {
    return TapGestureRecognizer()..onTap = () => callback(context);
  } else {
    return null;
  }
}