print

There

still

is

at

least

one

route

after

pop

);

else

print

Oops

No

more

routes

);

You could use Navigator.canPop() in combination with
Navigator.pop() to achieve the same result.

TextField

onTap:

()

if

Navigator

canPop

context

))

print

There

still

is

at

least

one

route

after

pop