popPage method

void popPage({
  1. bool dismissKeyboard = true,
})

Pop the top-most route off the navigator and dismiss the keyboard.

Implementation

void popPage({bool dismissKeyboard = true}) {
  if (dismissKeyboard) this.dismissKeyboard();
  Navigator.of(this).pop();
}