async_error_boundary 0.1.0
async_error_boundary: ^0.1.0 copied to clipboard
Declarative error boundary widget for Flutter inspired by React's Error Boundary. Catch errors thrown by descendants and render fallback UI with reset support.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add async_error_boundaryThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
async_error_boundary: ^0.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:async_error_boundary/async_error_boundary.dart';