essential_rest 1.1.22 icon indicating copy to clipboard operation
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 [...]

7
likes
80/ 140
pub points
9%
popularity

We analyzed this package 3 hours ago, and awarded it 80 pub points (of a possible 140):

icon indicating section status
Follow Dart file conventions
20 / 30icon to trigger folding of the section

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.

icon indicating section status
Provide documentation
10 / 20icon to trigger folding of the section

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.

icon indicating section status
Platform support
20 / 20icon to trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ MacOS
  • ✓ Web
icon indicating section status
Pass static analysis
20 / 30icon to trigger folding of the section

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

icon indicating section status
Support up-to-date dependencies
10 / 20icon to trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
http>=0.12.0 <2.0.00.13.50.13.5
http_parser>=3.1.2 <5.0.04.0.24.0.2
universal_html>=1.2.2 <2.0.01.2.42.0.8
Transitive dependencies
PackageConstraintCompatibleLatest
async-2.10.02.10.0
charcode-1.3.11.3.1
collection-1.17.11.17.1
crypto-3.0.23.0.2
csslib-0.16.20.17.2
html-0.14.0+40.15.1
meta-1.8.01.8.0
path-1.8.31.8.3
source_span-1.9.11.9.1
string_scanner-1.2.01.2.0
term_glyph-1.2.11.2.1
typed_data-1.3.11.3.1
universal_io-2.0.42.0.4
zone_local-0.1.20.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

icon indicating section status
Support sound null safety
0 / 20icon to trigger folding of the section

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.

7
likes
80
pub points
9%
popularity

Publisher

unverified uploader

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 in CACHE using Local Storage for fast loading and load reduction to the Server

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

http, http_parser, universal_html

More

Packages that depend on essential_rest