mobile static method
Implementation
static String? mobile(String value,{int length=10}) {
if (value.isEmpty) {
return 'Mobile number cannot be empty.';
} else if (value.length < length) {
return 'Number must be $length digits long.';
} else if (value.length > length) {
return 'Number must be $length digits long.';
}
return null;
}