abstract_form/state_management/_all library

Classes

AbstractFormBaseState
A base abstract class for form states. This class provides common properties and methods for form-related states, such as status tracking and copying state.
AbstractFormBasicState<TModel>
A base abstract class for form states that include a model. This class extends AbstractFormBaseState and adds a generic model property.
AbstractFormBloc<S extends AbstractFormBaseState>
An abstract BLoC class for managing form states and submission logic. Extends Bloc and uses generic state types extending AbstractFormBaseState.
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>
A base cubit class for managing form states and operations. This class extends Cubit and provides methods for initializing, updating, and submitting form data. It also handles validation and error states.
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>
A base abstract class for form states that include a model and a validator. This class extends AbstractFormBasicState and adds validation-related properties.
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.