flux_validator_dart 2.0.0 copy "flux_validator_dart: ^2.0.0" to clipboard
flux_validator_dart: ^2.0.0 copied to clipboard

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.

Dart Validator #

A package to validate strings and input data for dart.

Getting Started #

Install #

Add to your pubspec.yaml

dependencies:
  flux_validator_dart: <lastest-version>
copied to clipboard

And then run # pub get in your terminal.

How to use #

Import

import 'package:flux_validator_dart/flux_validator_dart.dart';
copied to clipboard

Use

Validator.email(value) // returns bool
copied to clipboard

Validator Options

Mercosul car plate

Ex: AAA-0000 or AAA-0A00

Validator.carPlate(value)
copied to clipboard
Brazilian CEP

Ex: 00000-000

Validator.cep(value)
copied to clipboard
Brazilian CNH

Ex: 00000000000

Validator.cnh(value)
copied to clipboard
Brazilian CNPJ

Ex: 00.000.000/0000-00

Validator.cnpj(value)
copied to clipboard
Brazilian CPF

Ex: 000.000.000-00

Validator.cpf(value)
copied to clipboard
Brazilian CPF & CNPJ

Ex: 000.000.000-00|0000-00

Validator.cpfCnpj(value)
copied to clipboard
dd/mm/yyyy Date

Ex: 00/00/0000

Validator.date(value)
copied to clipboard
Email

Ex: aaaaa@aaa.aaa.aa

Validator.email(value)
copied to clipboard
Numbers

Ex: 0123456

Validator.numbers(value)
copied to clipboard
Letters

Ex: abcdefgABCDEFG

Validator.letters(value)
copied to clipboard
Brazilian Phone

Ex: +55 (11) 0 0000-0000

Validator.phone(value)
copied to clipboard
Brazilian Renavam

Ex: 00000000000

Validator.renavam(value)
copied to clipboard
22
likes
130
points
329
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

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)

Documentation

API reference

License

BSD-2-Clause (license)

More

Packages that depend on flux_validator_dart