essential_rest 1.1.22
essential_rest: ^1.1.22 copied to clipboard
A Dart library to facilitate service consumption and API Rest, without the need for automatic code generation or reflection it does the JSON mapping for the Entity, besides allowing to keep the data i [...]
We analyzed this package 3 hours ago, and awarded it 80 pub points (of a possible 140):
0/10 points: Provide a valid pubspec.yaml
The package description is too long.
Search engines display only the first part of the description. Try to keep the value of the description
field in your package's pubspec.yaml
file between 60 and 180 characters.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT
.
10/10 points: Package has an example
0/10 points: 20% or more of the public API has dartdoc comments
- 9 out of 123 API elements (7.3 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)
- ✓ Android
- ✓ iOS
- ✓ Windows
- ✓ Linux
- ✓ MacOS
- ✓ Web
20/30 points: code has no errors, warnings, lints, or formatting issues
Found 14 issues. Showing the first 2:
INFO: Uses 'await' on an instance of 'MultipartFile', which is not a subtype of 'Future'.
lib/src/rest_client_generic.dart:185:29
╷
185 │ request.files.add(await http.MultipartFile.fromBytes('file[]', reader.result,
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/rest_client_generic.dart
INFO: An uninitialized variable should have an explicit type annotation.
lib/src/rest_client_generic.dart:387:13
╷
387 │ var result;
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/rest_client_generic.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
http | >=0.12.0 <2.0.0 | 0.13.5 | 0.13.5 |
http_parser | >=3.1.2 <5.0.0 | 4.0.2 | 4.0.2 |
universal_html | >=1.2.2 <2.0.0 | 1.2.4 | 2.0.8 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async | - | 2.10.0 | 2.10.0 |
charcode | - | 1.3.1 | 1.3.1 |
collection | - | 1.17.1 | 1.17.1 |
crypto | - | 3.0.2 | 3.0.2 |
csslib | - | 0.16.2 | 0.17.2 |
html | - | 0.14.0+4 | 0.15.1 |
meta | - | 1.8.0 | 1.8.0 |
path | - | 1.8.3 | 1.8.3 |
source_span | - | 1.9.1 | 1.9.1 |
string_scanner | - | 1.2.0 | 1.2.0 |
term_glyph | - | 1.2.1 | 1.2.1 |
typed_data | - | 1.3.1 | 1.3.1 |
universal_io | - | 2.0.4 | 2.0.4 |
zone_local | - | 0.1.2 | 0.1.2 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `>=1.2.2 <2.0.0` on universal_html does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions universal_html
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Package does not opt in to null safety.
Package language version (indicated by the sdk constraint `>=2.7.0 <3.0.0`) is less than 2.12.
Consider migrating.
Analysed with Pana 0.21.25
, Dart 2.19.0
.