flod library

Classes

AsyncRefineValidator<T>
Async refine layer — requires ValidatorExtensions.safeParseAsync.
AsyncSuperRefineValidator<T>
Async super-refine layer — requires ValidatorExtensions.safeParseAsync.
AsyncValidator<T>
Contract for validators that require ValidatorExtensions.safeParseAsync.
BaseNumberValidator<T extends num>
BoolValidator
CoerceBoolValidator
BoolValidator that coerces input before validation.
CoerceDoubleValidator
DoubleValidator that coerces input before validation.
CoerceIntValidator
IntValidator that coerces input before validation.
CoerceStringValidator
StringValidator that coerces non-strings via Object.toString.
CompiledListValidator<T>
12.3 — compiled list validator with hoisted item schema.
CompiledObjectField
Pre-resolved object field for fast iteration without per-call secret wrapping.
CompiledObjectValidator
12.3 — compiled object validator with pre-resolved field validators.
CompiledValidator<T>
Generic compiled wrapper that marks a validator tree as optimized.
DoubleValidator
Flod
Main entry point for the Flod library. Provides a concise API for declarative schema creation.
FlodCoerce
Entry point for Zod-style coercion: Flod.coerce.
FlodConfig
FlodDebug
15.3 — runtime validation tracing when FlodConfig.debug is enabled.
FlodDefaultLocale
Built-in English locale used when no custom FlodLocaleCompiler is provided.
FlodError
FlodErrorCodes
Canonical i18n error codes emitted by Flod validators. Use these codes in custom FlodLocaleCompiler implementations.
FlodFailure<Out>
FlodI18nResolver
FlodPath
FlodSuccess<Out>
IntValidator
LazyValidator<T>
Defers schema construction until the first validation (Zod .lazy()).
ListValidator<T>
Strictly typed list/collection validator. T denotes the type of elements inside the list.
LiteralValidator<T>
NullableValidator<T>
ObjectValidator
OptionalValidator<T>
ParseResult<Out>
RefineValidator<T>
SchemaPool
12.1 Schema Reuse — shared immutable base validators.
StringValidator
SuperRefineContext
Context passed to SuperRefineValidator / AsyncSuperRefineValidator callbacks. Allows attaching multiple targeted issues (Zod .superRefine() semantics).
SuperRefineValidator<T>
Sync super-refine layer — multiple custom issues via SuperRefineContext.
UnionValidator<T>
Validator<T>
ValidatorCompiler
12.3 Caching — compiles validator trees into optimized runtime forms.

Enums

ObjectMode

Typedefs

FlodLocaleCompiler = String Function(String code, Map<String, dynamic> params)
Signature for external locale compilers: (code, params) => String.
FlodTraceCallback = void Function(String message)

Exceptions / Errors

ValidationException