Description
Formz is a Dart package that gives form inputs a unified representation and validation model. Each field is a FormzInput, which you create with a value and a validator, then interact with to update its value and read its error. You can validate several inputs together, and the package also supports automatic validation. For validators that are expensive to run, a mixin caches the error result so it does not have to be recalculated each time. The README walks through creating an input, interacting with it, validating multiple items together and turning on automatic validation. Formz is developed by Very Good Ventures, is published on pub.dev, and is released under the MIT license. The aim is to simplify form handling in a generic way, so the same pattern works across different forms in a Dart project.…
Highlights
- Unified FormzInput model for form fields
- Validate several inputs together
- Automatic validation
- Caching mixin for expensive validators
- MIT license
Ratings & Reviews
No ratings yet
Be the first to rate Formz.
People also visit
Formz FAQ
What is Formz?
A Dart library for representing and validating form inputs in a consistent way.
How do I use it?
Create a FormzInput, interact with it to update its value, and validate one input or several together.
Can it cache validation results?
Yes. Use the FormzInputErrorCacheMixin to cache the error result when a validator is expensive.
What is the license?
The package is released under the MIT license.
Who maintains it?
Very Good Ventures develops it, and the source is on GitHub.
What are the best Formz alternatives?
Popular alternatives to Formz include Flutter Form Builder, Formiz and Form Builder. See all Formz alternatives






