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