abstract_form/_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
.
-
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>
-
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.
-
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>
-
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
.
-
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.