routingkit 1.0.0 copy "routingkit: ^1.0.0" to clipboard
routingkit: ^1.0.0 copied to clipboard

Routing Kit - router abstractions and built-in high-performance Radix-Trie router driver.

example/main.dart

import 'package:routingkit/routingkit.dart';

void main() {
  final router = createRouter(routes: {
    '/users/:name': 0,
  });

  final (params, value) = router.lookup('/users/seven');
  print('User name: ${params('name')}'); // seven
  print('Matched user value: $value'); // 0

  // Register a new route.
  router.register('/posts/:id', 2);
}
3
likes
0
pub points
26%
popularity

Publisher

verified publisherodroe.dev

Routing Kit - router abstractions and built-in high-performance Radix-Trie router driver.

Repository (GitHub)
View/report issues

Topics

#router #routing #routing-kit #radix #radix-router

Funding

Consider supporting this project:

github.com

License

unknown (license)

More

Packages that depend on routingkit