- 🚀 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: [email protected]:iTEEECH/validator.git
ref: main
Import
import 'package:validator/validator.dart';
Code
final validators = MultiValidator<String>([
RequiredValidator(errorText: 'Required.'),
EmailValidator(errorText: 'Wrong email format.')
]);