- 🚀 Platforms
- 📃 Description
- ⚙️ Setup
- 💻 Use case
| Android | iOS | Web |
|---|---|---|
| ✅ | ✅ | ✅ |
This package provides a set of commonly used validation functions for form fields in Flutter applications.
Add in this file pubspec.yaml.
validator:
git:
url: git@github.com:iTEEECH/validator.gitref: mainImport
import'package:validator/validator.dart';Code
final validators =MultiValidator<String>([
RequiredValidator(errorText:'Required.'),
EmailValidator(errorText:'Wrong email format.')
]);