stackedRouterGenerator function

Builder stackedRouterGenerator(
  1. BuilderOptions options
)

Implementation

Builder stackedRouterGenerator(BuilderOptions options) {
  final generatorConfig = GeneratorConfig.fromJson(options.config);
  return LibraryBuilder(
    generatorConfig.navigator2
        ? StackedRouterGenerator()
        : StackedNavigatorGenerator(),
    generatedExtension: '.router.dart',
  );
}