catcher_2 1.2.0 catcher_2: ^1.2.0 copied to clipboard
Plugin for error catching which provides multiple handlers for dealing with errors when they are not caught by the developer.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add catcher_2
With Flutter:
$ flutter pub add catcher_2
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
catcher_2: ^1.2.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:catcher_2/catcher_2.dart';