hcFinish function

void hcFinish(
  1. BuildContext context, [
  2. Object? result
])

Go back to previous screen.

Implementation

void hcFinish(BuildContext context, [Object? result]) {
  if (Navigator.canPop(context)) Navigator.pop(context, result);
}