abstract_form/_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.
AbstractFormBuilder<B extends StateStreamableSource<S>, S extends AbstractFormBaseState>
A widget for building forms with state management and event handling. This widget integrates with AbstractFormBaseState and provides callbacks for initialization, submission, success, and error handling.
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.
AbstractFormErrorContainer
A widget for displaying an error message and a retry button in a form. This widget is typically used when a form encounters an error and needs to provide the user with an option to retry the operation.
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.
AbstractFormNoDataContainer
A widget for displaying a "no data" message and a retry button in a form. This widget is typically used when a form has no data to display and provides the user with an option to retry fetching or loading the data.
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.
ModelValidator
A base abstract class for model validation. This class provides default implementations for common validation methods, such as validating a model, retrieving validation messages, and formatting messages.
PropertyValidator<T>
A base abstract class for validating a specific property of a model. This class is generic and can be used to validate properties of any type T. Subclasses must implement the validate method to provide custom validation logic.