dry_bloc 1.0.0 copy "dry_bloc: ^1.0.0" to clipboard
dry_bloc: ^1.0.0 copied to clipboard

States and functions for bloc package that reduces boilerplate

1.0.0 #

  • BREAKING refactor!: rethrow all the exceptions

  • BREAKING refactor!: make DryException implement Exception

  • feat: introduce maybeWhenDryException() extension method

    Example of usage:

      runZonedGuarded(
          () async {
              runApp(...);
          },
          (error, stack) {
              error.maybeWhenDryException(
                  // If you want to log to the Crashlytics only fatal exceptions
                  businessTyped: (error) {},
                  businessUntyped: (error) {},
                  orElse: (error) =>
                      FirebaseCrashlytics.instance.recordError(error, stack),
                  );
          },
      );
    

0.1.0+1 #

  • feat: initial commit 🎉
0
likes
150
points
33
downloads

Publisher

verified publisherrepur.dev

Weekly Downloads

States and functions for bloc package that reduces boilerplate

Repository (GitHub)
View/report issues

Topics

#bloc #state-management

Documentation

API reference

License

MIT (license)

Dependencies

bloc, equatable, meta

More

Packages that depend on dry_bloc