endScreen static method

void endScreen(
  1. BuildContext context
)

Implementation

static void endScreen(BuildContext context){
  if (Navigator.canPop(context)) {
    Navigator.pop(context);
  } else {
    SystemNavigator.pop();
  }
}