UriTemplate Reborn is an implementation of RFC 6570, URI Template.
This version is a fork of Dart Team's uri_template, just try to port String mode in Dart 2.
There is a FormatException while testing, but the library just works, i am lazy to fix it.
Add this to your package's pubspec.yaml file:
dependencies: uri_template_r: ^0.6.2
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:uri_template_r/uri_parser.dart'; import 'package:uri_template_r/uri_template.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jul 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in libraries.
lib/uri_template.dart. (-1.99 points)
lib/uri_template.dart reported 4 hints:
line 27 col 1: Prefer using /// for doc comments.
line 60 col 21: This function has a return type of 'String', but doesn't end with a return statement.
line 69 col 3: Prefer using /// for doc comments.
line 132 col 13: Use isNotEmpty instead of length
lib/uri_parser.dart. (-1.49 points)
lib/uri_parser.dart reported 3 hints:
line 7 col 1: Prefer using /// for doc comments.
line 34 col 13: Don't type annotate initializing formals.
line 44 col 3: Prefer using /// for doc comments.
lib/src/encoding.dart. (-1 points)
lib/src/encoding.dart reported 2 hints:
line 59 col 1: Prefer using /// for doc comments.
line 68 col 40: Use
= to separate a named parameter from its default value.
dartfmt to format
Provide a file named
CHANGELOG.md. (-20 points)
Changelog entries help developers follow the progress of your package. See the example generated by
The package description is too short. (-16 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
uri_template_r.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.