get_typed_router 0.0.1
get_typed_router: ^0.0.1 copied to clipboard
Type-safe, annotation-based route generation for GetX. Annotate your pages with @AppRoute, run the CLI generator, and get a fully typed AppRouter with type-safe navigation and strongly-typed argument [...]
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate get_typed_routerUse it
The package has the following executables:
$ get_typed_router
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add get_typed_routerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
get_typed_router: ^0.0.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:get_typed_router/get_typed_router.dart';