angel_http_exception 1.1.0
angel_http_exception: ^1.1.0

Dart native js
Flutter Android iOS web

Exception class that can be serialized to JSON and serialized to clients.

0
likes
100 / 110
pub points
84 %
popularity

We analyzed this package on Nov 20, 2020, and awarded it 100 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/main.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 20 out of 28 API elements (71.4 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 14 issues. Showing the first 2:

INFO: Unnecessary new keyword.

lib/angel_http_exception.dart:52:12

   ╷
52 │       return new AngelHttpException(
   │ ┌────────────^
53 │ │       null,
54 │ │       statusCode: (data['status_code'] ?? data['statusCode']) as int,
55 │ │       message: data['message']?.toString(),
56 │ │       errors: data['errors'] is Iterable
57 │ │           ? ((data['errors'] as Iterable).map((x) => x.toString()).toList())
58 │ │           : <String>[],
59 │ │     );
   │ └─────^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/angel_http_exception.dart

INFO: Unnecessary new keyword.

lib/angel_http_exception.dart:63:7

   ╷
63 │       new AngelHttpException.fromMap(json.decode(str) as Map);
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/angel_http_exception.dart

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
dart2_constant^1.0.01.0.2+dart21.0.2+dart2

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

0
likes
100
pub points
84%
popularity

Publisher

angel-dart.dev

Exception class that can be serialized to JSON and serialized to clients.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart2_constant

More

Packages that depend on angel_http_exception