annotation_route 0.0.2 copy "annotation_route: ^0.0.2" to clipboard
annotation_route: ^0.0.2 copied to clipboard

auto generate router config

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add annotation_route

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  annotation_route: ^0.0.2

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:annotation_route/builder.dart';
import 'package:annotation_route/example/page_a.dart';
import 'package:annotation_route/example/page_b.dart';
import 'package:annotation_route/example/page_c.dart';
import 'package:annotation_route/example/page_d.dart';
import 'package:annotation_route/example/router.route.dart';
import 'package:annotation_route/example/router.route.internal.dart';
import 'package:annotation_route/route.dart';