palace_validators 0.0.4 palace_validators: ^0.0.4 copied to clipboard
easily validate classes (DTO) with decorators to make it cleaner and easier to read [part of palace]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add palace_validators
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
palace_validators: ^0.0.4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:palace_validators/palace_validators.dart';