79833730

Date: 2025-11-30 06:52:59
Score: 0.5
Natty:
Report link

Even much better

 if (GoRouter.of(context).canPop()) {
                GoRouter.of(context).pop();
              } else {
                context.go('/dashboard');
              }

So if there is no route, you can set a fallback!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shamnad sherief