flrx_validator 0.2.0 flrx_validator: ^0.2.0 copied to clipboard
A powerful, extensible validator package to get validation messages based on a list of rules.
Flrx Validator #
Validator on Steroids
Installation #
Add the following to your pubspec.yaml
file
dependencies:
flrx_validator: ^0.2.0
Usage #
Documentation #
For more info on Flrx Validator and Rules you can see the documentation.
Example #
import 'package:flrx_validator/validator.dart';
import 'package:flrx_validator/rules/email_rule.dart';
import 'package:flrx_validator/rules/required_rule.dart';
....
....
TextFormField(
validator: Validator<String>()
.add(RequiredRule())
.add(EmailRule())
.build()
);
....
....
Contributing #
Please see CONTRIBUTING.
License #
Please see LICENSE.