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 ↗