flux_validator_dart 1.0.3

Flutter Android iOS web

A package to validate strings and input data for dart with a variety of validators such as cpf, cnpj, car plate, email, phone number and others.

Flux Validator Dart #

A package to validate strings and input data for dart.

Getting Started #

Install #

Add to your pubspec.yaml

dependencies:
  flux_validator_dart: <lastest-version>

And then run # pub get in your terminal.

How to use #

Import

import 'package:flux_validator_dart/flux_validator_dart.dart';

Use

Validator.email(value) // returns bool

Validator Options

Mercosul car plate

Ex: AAA-0000 or AAA-0A00

Validator.carPlate(value)
Brazilian CEP

Ex: 00000-000

Validator.cep(value)
Brazilian CNH

Ex: 00000000000

Validator.cnh(value)
Brazilian CNPJ

Ex: 00.000.000/0000-00

Validator.cnpj(value)
Brazilian CPF

Ex: 000.000.000-00

Validator.cpf(value)
Brazilian CPF & CNPJ

Ex: 000.000.000-00|0000-00

Validator.cpfCnpj(value)
dd/mm/yyyy Date

Ex: 00/00/0000

Validator.date(value)
Email

Ex: aaaaa@aaa.aaa.aa

Validator.email(value)
Numbers

Ex: 0123456

Validator.numbers(value)
Letters

Ex: abcdefgABCDEFG

Validator.letters(value)
Brazilian Phone

Ex: +55 (11) 0 0000-0000

Validator.phone(value)
Brazilian Renavam

Ex: 00000000000

Validator.renavam(value)
4
likes
100
pub points
76%
popularity

A package to validate strings and input data for dart with a variety of validators such as cpf, cnpj, car plate, email, phone number and others.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

lucas.yarid@gmail.com

License

BSD (LICENSE)

More

Packages that depend on flux_validator_dart