routingkit 1.1.0 copy "routingkit: ^1.1.0" to clipboard
routingkit: ^1.1.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 result = router.lookup('/users/seven');
  print('User name: ${result?.params('name')}'); // seven
  print('Matched user value: ${result?.value}'); // 0

  // Register a new route.
  router.register('/posts/:id', 2);
}
3
likes
150
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

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

More

Packages that depend on routingkit