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

A route parsing package for matching routes against each other and extracting params

Route Parser #

A route parsing dart package.

Usage #

import 'package:route_parser/route_parser.dart';

// parse
RouteParser('/route/:id').parse('/route/100'); // match true with params['id'] = 100
// match 
RouteParser('/route').match('/route'); // true
RouteParser('/route').match('/route', matchChildren: true); // true
RouteParser('/route').match('/route/any'); // false
RouteParser('/route').match('/route/any', matchChildren: true); //true
6
likes
160
points
70
downloads

Publisher

unverified uploader

Weekly Downloads

A route parsing package for matching routes against each other and extracting params

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on route_parser