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.
- Use external class to make validations;
- Use extension method to make validations;
Easy and simple, add sanationes
as a dependency in your pubspec.yaml file.
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.