Skip to content

cedvdb/route_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages