manual_suspense library

A Flutter package that provides programmatically controlled suspense widgets inspired by React Suspense, allowing developers to manage loading states declaratively with manual control over task completion.

This package is useful when you need fine-grained control over when loading states should appear and disappear, perfect for complex async workflows, manual data fetching, or multi-step operations.

Classes

ManualSuspense
A widget that displays different UI based on the state of a suspense task.
SuspenseController
A controller that manages suspense tasks for ManualSuspense widget instances.