v2.0.0
flux_validator_dart
一个用于 Dart 的字符串和输入数据验证的包,提供多种验证器,如 CPF、CNPJ、车牌、电子邮件、电话号码等。
22喜欢 109近 30 天下载130Pub 分数
AndroidiOSWebmacOSWindowsLinux
Dart 的数据验证
以下为英文项目原文快照,最新内容请访问 GitHub。
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)
依赖清单 1 项
{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗