Skip to content

A Dart package for all platforms to make some validations in native data types.

License

Notifications You must be signed in to change notification settings

LeonardoRosaa/sanationes

Repository files navigation

Sanationes

A Dart package for all platforms to make some validations in native data types.

Note: it's a starting package, however, has some validations to add yet.

Features

  • Use external class to make validations;
  • Use extension method to make validations;

Installation

Easy and simple, add sanationes as a dependency in your pubspec.yaml file.

Usage

Generally, can you use by two ways, by external Validations class or extensions of data type.

Example by Validations class:

import 'package:sanationes/sanationes.dart';

void main() {
  print(Validations.instance().isEmail('[email protected]')); // true
}

Or, by extensions:

import 'package:sanationes/sanationes.dart';

void main() {
  print('[email protected]'.isEmail);
}

Note: it's a starting package, however, has some validations to add yet.

About

A Dart package for all platforms to make some validations in native data types.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages