mobile static method
Implementation
static String? mobile(String? value, {String message = "Enter valid mobile number"}) {
if (value == null || value.isEmpty) return null;
final regex = RegExp(r'^[6-9]\d{9}$'); // Indian mobile
if (!regex.hasMatch(value)) {
return message;
}
return null;
}