blob: 2a4cc6bd5416afde0351d8b15d0f804831f16184 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Configuration for using `package:build`-compatible build systems.
/// See:
/// * [build_runner](
/// This library is **not** intended to be imported by typical end-users unless
/// you are creating a custom compilation pipeline. See documentation for
/// details, and `build.yaml` for how these builders are configured by default.
library go_router_builder;
import 'package:build/build.dart';
import 'package:source_gen/source_gen.dart';
import 'src/go_router_generator.dart';
/// Supports `package:build_runner` creation and configuration of
/// `go_router`.
/// Not meant to be invoked by hand-authored code.
Builder goRouterBuilder(BuilderOptions options) => SharedPartBuilder(
const <Generator>[GoRouterGenerator()],