Closed s9th closed 2 years ago
@s9th that is a bug for sure! @kevmoo what did you do??? : )
It's a bug – in analyzer!
https://pub.dev/documentation/go_router/latest/go_router/GoRouterHelper.html
The extension class is exported correctly!
I could imagine this being an edge case w/ extension types – since they are new-ish.
@s9th this should be fixed in v2.2.4. can you confirm?
can confirm, thank you
Since 2.2.0 whenever go_router method is used without importing package before, vscode import suggests import 'package:go_router/src/go_router.dart';
This in turn produces a warning if corresponding analysis option is enabled, so you need to manually change the import to 'package:go_router/go_router.dart'