Search packages, repositories and app categories

GitHub repositorythis-empathy/dart_validator

dart_validator

Data validation for dart

dart_validator project cover
Stars
1
Forks
0
Last push (UTC)
Jun 5, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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>

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)
this.empathy GitHub avatar
GitHub author

this.empathy ↗

LanguagesDartSwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 1 items

  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗