canPop property
bool
get
canPop
Returns true
if the current route can be popped (i.e., the current route
is not the root route or the only route in the navigator stack).
Implementation
bool get canPop => Navigator.canPop(this);