A package to validate strings and input data for dart.
Add to your pubspec.yaml
dependencies:
flux_validator_dart: <lastest-version>
And then run # pub get
in your terminal.
import 'package:flux_validator_dart/flux_validator_dart.dart';
Validator.email(value) // returns bool
Ex: AAA-0000 or AAA-0A00
Validator.carPlate(value)
Ex: 00000-000
Validator.cep(value)
Ex: 00000000000
Validator.cnh(value)
Ex: 00.000.000/0000-00
Validator.cnpj(value)
Ex: 000.000.000-00
Validator.cpf(value)
Ex: 000.000.000-00|0000-00
Validator.cpfCnpj(value)
Ex: 00/00/0000
Validator.date(value)
Ex: aaaaa@aaa.aaa.aa
Validator.email(value)
Ex: 0123456
Validator.numbers(value)
Ex: abcdefgABCDEFG
Validator.letters(value)
Ex: +55 (11) 0 0000-0000
Validator.phone(value)
Ex: 00000000000
Validator.renavam(value)