Bloc Superpowers

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Bloc Superpowers is a Flutter/Dart package that enhances Cubits with a `mix` function wrapper. It eliminates the need for manual loading and error state management by providing built-in helpers like `isWaiting()` and `isFailed()`. The package includes features for retry logic with exponential backoff, non-reentrant execution, internet connectivity checks, debouncing, throttling, sequential processing, and optimistic UI updates. It also introduces Effects for one-time notifications that replace BlocListener, making it easier to trigger side effects like dialogs or navigation directly in the build method.

8m read timeFrom medium.com
Post cover image
Table of contents
Flutter/Dart package for enhancing your CubitsThe mix functionLoading and error statesError dialog

Sort: