Skip to content
[DEPRECATED]
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
test
.analysis_options
.gitignore
CHANGELOG.md
LICENSE
README.md
pubspec.yaml

README.md

Venosyd Commom Validators

The Opensyd reusability approach for validators in Dart. Based on
Verbal Expressions.

Sample

  • validateEmail
var email = 'dude@email.com';
if (validadeEmail(email) {
    register(email);
}
  • validadeFutureDate

Used when you want to someone choose a date after today.

var date = new DateTime('2099', '11', '21');
if (validadeFutureDate(date) {
    someCode(date);
}
  • validateText / validateTextWithLimit

Used when you want to the user enters only characters used
in common dissertative or descritive texts.

var text = '''
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
    In molestie bibendum gravida. Sed egestas venenatis ex, 
    vitae malesuada nibh consectetur nec. Integer posuere 
    pharetra justo, et egestas tellus imperdiet sed. Proin 
    eu augue molestie, egestas libero sed, tempus sapien. 
''';

if (validateText(text) {
    sendToBlog(text);
}
  • validateName / validateNameWithSpace

Validate common used chars for names, in Western method (needs upgrade).

var name = 'Roberto Santos Carlos Almeidinha';
if (validateNameWithSpace(name) {
    register(name);
}
  • validateAddress
var address = 'Priest Namegon St, 992 - Simula, DE';
if (validateAddress(address) {
    sendPackageTo(address);
}
  • validatePhone
var phone = '+42 11 99299-2299';
if (validatePhone(phone) {
    call(phone);
}

venosyd ©2016

You can’t perform that action at this time.