toPhoneNumber method
String
toPhoneNumber({
- InvalidPhoneAction invalidPhoneAction = InvalidPhoneAction.ShowUnformatted,
- bool allowEndlessPhone = false,
- String? defaultMask,
- String? defaultCountryCode,
Implementation
String toPhoneNumber({
InvalidPhoneAction invalidPhoneAction = InvalidPhoneAction.ShowUnformatted,
bool allowEndlessPhone = false,
String? defaultMask,
String? defaultCountryCode,
}) {
return formatAsPhoneNumber(
this,
allowEndlessPhone: allowEndlessPhone,
defaultCountryCode: defaultCountryCode,
defaultMask: defaultMask,
invalidPhoneAction: invalidPhoneAction,
) ??
this;
}