m4d_router 0.1.6 m4d_router: ^0.1.6 copied to clipboard
A browser routing library for Dart
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add m4d_router
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
m4d_router: ^0.1.6
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:m4d_router/browser.dart';
import 'package:m4d_router/exceptions.dart';
import 'package:m4d_router/exeptions/RouteNotFoundException.dart';
import 'package:m4d_router/route.dart';
import 'package:m4d_router/router.dart';
import 'package:m4d_router/url_pattern.dart';
import 'package:m4d_router/utils/async_utils.dart';
import 'package:m4d_router/utils/map_utils.dart';