error_catch_boundary 1.1.0
error_catch_boundary: ^1.1.0 copied to clipboard
A React-inspired error boundary package for Flutter that catches subtree build errors, prevents UI crashes, logs exceptions, and displays localized fallback UI.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add error_catch_boundaryThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
error_catch_boundary: ^1.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:error_catch_boundary/error_catch_boundary.dart';