79629057

Date: 2025-05-19 15:33:30
Score: 0.5
Natty:
Report link

While not officially recommended, it's possible to use final ref = ProviderScope.containerOf(context) to get a ProviderContainer object, which can be used to read (but not watch) values from a Riverpod provider.

Alternatively, you can just use a Riverpod Provider to provide the whole GoRouter object.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tin Man