clickable method
Implementation
Widget clickable({
required Function onPress,
required BuildContext context,
}) {
return InkWell(
onTap: () {
Navigator.pop(context);
onPress.call();
},
child: this,
);
}
Widget clickable({
required Function onPress,
required BuildContext context,
}) {
return InkWell(
onTap: () {
Navigator.pop(context);
onPress.call();
},
child: this,
);
}