pop method

Future<bool> pop(
  1. BuildContext context
)

Implementation

Future<bool> pop(BuildContext context) async {
  if (inline) {
    return false;
  }
  if (willPop == null) {
    return await Navigator.of(context).maybePop();
  }
  if (willPop!()) {
    return await Navigator.of(context).maybePop();
  }
  return false;
}