The builders generate code when they find members annotated with classes defined in package:router_annotation.
See the example to understand how to configure your package.
- (推荐) router_compiler cli
flutter pub run router_compiler build
- (不推荐) build_runner cli
flutter pub run build_runner clean flutter pub run build_runner build --delete-conflicting-outputs