super_state library

Classes

GetSuperState
Provides a way to retrieve a specific SuperState instance from the widget tree.
GetSuperStateInfo
Provides a way to retrieve specific state information from a SuperState in the widget tree.
GetSuperStateProvider
Provides utility methods to locate a SuperStateProvider in the widget tree.
ProviderId
A unique identifier for a provider, extending ValueKey.
SuperState
The SuperState class is a state management utility designed to manage dependencies and interactions between multiple Flutter states. It provides mechanisms for injecting dependencies, binding and unbinding states, clearing invalid references, and sending notifications to bound states.
SuperStateConsumer
A widget that listens to SuperState changes and rebuilds its child widget when necessary.
SuperStateNotification
An abstract class that defines a contract for receiving notifications from a SuperState instance. Classes implementing this interface can handle notifications sent by SuperState.
SuperStateProvider
A widget that provides a list of SuperState instances to its descendants.

Extensions

SuperStateExtension on State<StatefulWidget>
Extension methods on State to simplify interactions with SuperState and SuperStateProvider.
SuperStateOnContext on BuildContext
Extension methods on BuildContext to simplify interactions with SuperState and SuperStateProvider.

Typedefs

SuperStateConsumerBuilder = Widget Function(BuildContext context, StateSetter setState, ProviderId? key)
SuperStateConsumerSelector = bool Function(SuperState superState)
WhenSetSuperState = bool Function(State<StatefulWidget> state)
A typedef for a function that determines whether to set the state.