regularFormat function
regularFormat
Returns the phone number with regular format 07.
@throws LocalRegexException if the given number
is not a valid number.
Implementation
String regularFormat(String number) {
if (number.length < 9) {
throw LocalRegexException('Phone number length cannot be less than 9');
}
final phoneNumber = number.substring(number.length - 9);
return '0${phoneNumber.clean}';
}