onBackAction method
Implementation
onBackAction(BuildContext context) async {
FocusScope.of(context)
.requestFocus(FocusNode());
if (onBack != null) {
onBack?.call();
} else {
Navigator.pop(context);
}
}
onBackAction(BuildContext context) async {
FocusScope.of(context)
.requestFocus(FocusNode());
if (onBack != null) {
onBack?.call();
} else {
Navigator.pop(context);
}
}