angel_http_exception 1.1.0
angel_http_exception: ^1.1.0 copied to clipboard
Exception class that can be serialized to JSON and serialized to clients.
0
likes
100
/ 110
pub points
83
%
popularity
We analyzed this package on Feb 15, 2021, and awarded it 100 pub points (of a possible 110):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
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.
20/20 points: Supports 2 of 2 possible platforms (native, js)
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
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
dart2_constant | ^1.0.0 | 1.0.2+dart2 | 1.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
Analysed with
Pana 0.14.10
,
Dart 2.10.5
.