form_bloc library

Classes

BaseFormEntity<F extends BaseFormEntity<F, E>, E extends Enum>
A base class for immutable form entities used by the FormBloc system.
BlocxConditionalRequiredValidator
BlocxDateRangeValidator
Validator that ensures a DateTime value is within the inclusive range minDate, maxDate.
BlocxExactLengthValidator
Validator that ensures a string field has exactly length characters.
BlocxFieldValidator<T>
Base class for field validators used in form validation.
BlocxFormValidator<F extends BaseFormEntity<F, E>, E extends Enum>
Base class for form validators that validates an entire form entity.
BlocxLengthRangeValidator
Validator that ensures a string field is within the inclusive range minLength, maxLength.
BlocxMatchFieldValidator<T>
Validator that ensures a field matches another field’s value.
BlocxMaxDateValidator
Validator that ensures a DateTime value is not after maxDate.
BlocxMaxLengthValidator
Validator that ensures a string field does not exceed maxLength characters.
BlocxMaxValueValidator<T extends num>
Validator that ensures a numeric field is less than or equal to maxValue.
BlocxMinDateValidator
Validator that ensures a DateTime value is not before minDate.
BlocxMinLengthValidator
Validator that ensures a string field has at least minLength characters.
BlocxMinValueValidator<T extends num>
Validator that ensures a numeric field is greater than or equal to minValue.
BlocxRangeValueValidator
Validator that ensures a numeric field is within the inclusive range minValue, maxValue.
BlocxRegexValidator
Validator that ensures a field matches a given regular expression pattern.
BlocxRequiredValidator
Validator that ensures a field is not empty or null.
BlocxSingleErrorFieldValidator<T>
A base class for field validators that produce at most a single error message.
TimedErrorMessage
Represents an error message that can optionally be displayed for a limited duration.

Enums

FormValidationMode
Determines when the form should validate.

Mixins

BlocxFormValidationMixin<F extends BaseFormEntity<F, E>, P, E extends Enum>
A mixin that adds form validation capabilities to a BlocxFormBloc.