79187158

Date: 2024-11-14 01:55:24
Score: 1.5
Natty:
Report link

This is a pretty old question, but I thought the following would work:

if (!Navigator.of(context).canPop())

or

if (!Navigator.of(globalKey.currentContext!).canPop()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mmm