Angel's HTTP exception class.
- No more
- No more
- Slightly relax the deserialization of
- Added a backwards-compatible way to cast the
- Dart 2 updates.
import 'package:angel_http_exception/angel_http_exception.dart'; void main() => throw new AngelHttpException.notFound(message: "Can't find that page!");
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: angel_http_exception: ^1.1.0
2. Install it
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.
3. Import it
Now in your Dart code, you can use:
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 Mar 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.6
lib/angel_http_exception.dart. (-6.78 points)
lib/angel_http_exception.dart reported 14 hints, including:
line 52 col 12: Unnecessary new keyword.
line 63 col 7: Unnecessary new keyword.
line 70 col 7: Unnecessary new keyword.
line 76 col 7: Unnecessary new keyword.
line 81 col 7: Unnecessary new keyword.
Package is getting outdated. (-11.51 points)
The package was last published 58 weeks ago.