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