Flrx Validator

Validator on Steroids

Pub Build Status codecov GitHub

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.

Libraries

any_rule
email_rule
max_length_rule
min_length_rule
one_of_rule
regex_rule
required_rule
rule
validator