luthor 0.14.0 copy "luthor: ^0.14.0" to clipboard
luthor: ^0.14.0 copied to clipboard

A Dart validation library inspired by https://zod.dev with support for code generation.

Luthor #

Luthor is a validation library, heavily inspired by zod

Installation #

Dart:

dart pub add luthor
copied to clipboard

Flutter:

flutter pub add luthor
copied to clipboard

Code Generation (Optional) #

Luthor supports code generation for enhanced type safety and developer experience:

dart pub add dev:build_runner dev:luthor_generator
copied to clipboard

Features include:

  • Type-safe ErrorKeys - Generated constants for accessing validation errors
  • Type-safe SchemaKeys - Generated constants for defining schemas
  • Cross-field validation - Validate fields against other fields in the same schema

See the documentation for usage.

23
likes
150
points
448
downloads

Publisher

verified publisherex3.dev

Weekly Downloads

2024.12.08 - 2025.11.02

A Dart validation library inspired by https://zod.dev with support for code generation.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on luthor