flux_form library
Flux Form
Classes
-
AsyncValidator<
T, E> - A asynchronous validation rule. Useful for checking databases, APIs, etc.
-
BoolInput<
T extends bool, E> -
BoolValidator<
E> - A namespace for Boolean rules.
-
ComparableValidator<
T extends Comparable< T> , E> - A namespace for Comparable validation rules (Dates, Durations, etc).
-
DateTimeInput<
T extends DateTime, E> -
FileValidator<
E> - A namespace for File validation rules.
-
FormatValidator<
E> - FormError
- Interface for form errors.
-
FormInput<
T, E> - FormSchema
- A base class for strongly-typed forms.
-
FormSubmitter<
T> - A utility class to encapsulate the standard submission lifecycle.
- FormValidator
-
GenericInput<
T, E> - A concrete implementation of FormInput for one-off use cases.
-
InputData<
T, E> - Data class for storing input state.
-
ListInput<
T, E> - Base class to avoid naming conflicts with the concrete implementation.
-
ListSanitizer<
T> - A namespace for List transformation rules.
-
ListValidator<
T, E> - A namespace for List/Array validation rules.
-
LogicValidator<
T, E> - A convenience entry point for Logic Validators.
-
MapInput<
K, V, E> -
NumberInput<
T extends num, E> - A generic input for numeric values. Can be used as NumberInput<int> or NumberInput<double>.
- NumberSanitizer
- A namespace for Number transformation rules.
-
NumberValidator<
E> - A namespace for Numeric validation rules (int/double).
-
ObjectValidator<
T, E> - A namespace for generic object matching rules.
-
Sanitizer<
T> - Interface for transforming/cleaning data.
- SanitizerPipeline
- Helper to run a list of sanitizers.
-
SimpleBoolInput<
E> -
SimpleDateTimeInput<
E> - A specialized input for DateTime values.
-
SimpleListInput<
T, E> - A field for managing dynamic lists (e.g., Tags, Multi-selects).
-
SimpleMapInput<
K, V, E> -
SimpleNumberInput<
T extends num, E> - A generic input for numeric values. Can be used as NumberInput<int> or NumberInput<double>.
-
SimpleStringInput<
E> - A base class for String inputs.
-
StandardInput<
T, E extends FormError> -
A standard generic input for any type
T(Enums, Objects, Colors, etc) and any error typeEthat extends FormError. -
StringInput<
T extends String, E> - StringSanitizer
- A namespace for String transformation rules.
-
StringValidator<
E> - A namespace for String-based validation rules.
-
Validator<
T, E> -
A synchronous validation rule.
Tis the type of value being validated.Eis the type of error returned (e.g., String or FluxFault). - ValidatorPipeline
- Helper to run a list of validators.
Enums
- FormStatus
- Represents the current state of a form submission.
- InputStatus
- Enum for tracking the interaction state of a form field.
- ValidationMode
- Controls when validation errors are displayed to users.
Mixins
- FormMixin
- Mixin for State classes to check overall validity easily.
-
InputMixin<
T, E, I extends FormInput< T, E> > - A mixin that provides fluent convenience methods for FormInput subclasses.
Typedefs
-
OnValidateError<
T, E> = void Function(T value, E error) -
OnValidateStart<
T> = void Function(T value) -
OnValidateSuccess<
T> = void Function(T value) - ValidatorPredicate = bool Function()