pops static method

void pops(
  1. BuildContext context
)

Implementation

static void pops(BuildContext context) {
  if (Navigator.of(context).canPop()) {
    Navigator.of(context).popUntil((predicate) => predicate.isFirst);
  }
}