isEmpty validation added to service

This commit is contained in:
2025-06-04 11:33:12 +02:00
parent 4fb9992dfa
commit 46e41d9c8b

View File

@@ -1,4 +1,11 @@
class MihValidationServices {
String? isEmpty(String? value) {
if (value == null || value.isEmpty) {
return "This field is required";
}
return null;
}
String? validateEmail(String? email) {
if (email == null || email.isEmpty) {
return "Email is required";