luthor 0.4.2+2 luthor: ^0.4.2+2 copied to clipboard
A Dart validation library inspired by https://zod.dev with support for code generation.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add luthor
With Flutter:
$ flutter pub add luthor
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
luthor: ^0.4.2+2
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:luthor/luthor.dart';