Luthor

Luthor is a validation library, heavily inspired by zod

Installation

Dart:

dart pub add luthor

Flutter:

flutter pub add luthor

Code Generation (Optional)

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

dart pub add dev:build_runner dev:luthor_generator

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.

Libraries

luthor