canPop static method

bool canPop()

Implementation

static bool canPop() {
  BuildContext? context = OdinApp.get().getCurrentContext();

  if (context == null) {
    return false;
  }

  return Navigator.of(context).canPop();
}