flrx_validator 0.1.0 flrx_validator: ^0.1.0 copied to clipboard
Validator on steroids
Flrx Validator #
Validator on Steroids
Installation #
Add the following to your pubspec.yaml
file
dependencies:
flrx_validator: ^0.1.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.