popScreen method
void
popScreen()
Pops the current route off the navigator stack.
This is a simplified wrapper for Navigator.pop.
Example:
IconButton(
onPressed: () => context.popScreen(),
icon: const Icon(Icons.arrow_back),
)
Note: This method is often replaced by pop for better consistency with Flutter's API.
Implementation
void popScreen() => Navigator.pop(this);