abstract_form/state_management/_all library

Classes

AbstractFormBaseState
Base state class for managing form data in BLoC/Cubit patterns.
AbstractFormBasicState<TModel>
State class for forms that manage a data model.
AbstractFormBloc<S extends AbstractFormBaseState>
An abstract Bloc for managing form state using the event-driven pattern.
AbstractFormBusBridgeBloc<S extends AbstractFormState<dynamic, ModelValidator>>
A bridge between a form BLoC (AbstractFormBloc) and an event bus.
AbstractFormBusBridgeCubit<S extends AbstractFormBaseState>
A Cubit that bridges form state with an event bus.
AbstractFormBusObserverBloc<S extends AbstractFormState<dynamic, ModelValidator>>
A BLoC that observes events from an event bus and processes them.
AbstractFormBusObserverCubit<S extends AbstractFormBaseState>
A base cubit class for observing events from an event bus. This class extends AbstractFormCubit and listens to a global event bus. Subclasses must implement the observe method to handle incoming events.
AbstractFormBusPublisherBloc<S extends AbstractFormState<dynamic, ModelValidator>>
A BLoC that publishes its state updates to an event bus.
AbstractFormBusPublisherCubit<S extends AbstractFormBaseState>
A base cubit class for publishing state changes to an event bus. This class extends AbstractFormCubit and automatically publishes its state changes to a global event bus using attachToEventBus.
AbstractFormCubit<S extends AbstractFormBaseState>
An abstract Cubit for managing form state with support for initialization, validation, submission, and offline fallback.
AbstractFormEvent
A base abstract class for form-related events. This class serves as a parent for all form events, such as initialization, updates, and submissions.
AbstractFormInitEvent
An event representing the initialization of a form. This event can carry an optional model to initialize the form.
AbstractFormState<TModel, TModelValidator extends ModelValidator>
Full-featured state class for forms with model and validation support.
AbstractFormSubmitEvent<TModel>
An event representing the submission of a form. This event is generic and can carry a model of any type TModel.
AbstractFormUpdateEvent<TModel>
An event representing an update to the form's model. This event is generic and can carry a model of any type TModel.