Flutter II Package
Epitech Scool project, the goal is to create a package that can be used in another project
Validators
-
isName(String str) : If name contains only letters, return true, otherwise false
-
isEmail(String str) : If email contains '@', return true, otherwise false
-
isPasswordStrong(String str) : If password length < 8 and contains uppercase letter and one digit, return true, otherwise true
-
isAlphanumeric(String str) : If string contains letters or/and digits, return true, otherwise false
-
isAlpha(String str) : If string contains only letters, return true, otherwise false
-
isNum(String str) : If string contains only digits, return true, otherwise false
-
isUppercase(String str) : If string is uppercase, return true, otherwise false
-
isLowercase(String str) : If string is lowercase, return true, otherwise false
In terminal type :
flutter pub get flutteriipackage
import 'package:flutter_pkg/flutter_pkg.dart';
final validator = Validators();
validator.isValidEmail('test@test.com');
flutter test test/package_test.dart