formatNumberSync function
String
formatNumberSync(
- String number, {
- CountryWithPhoneCode? country,
- PhoneNumberType phoneNumberType = PhoneNumberType.mobile,
- PhoneNumberFormat phoneNumberFormat = PhoneNumberFormat.international,
- bool removeCountryCodeFromResult = false,
- bool inputContainsCountryCode = true,
Implementation
String formatNumberSync(
final String number, {
final CountryWithPhoneCode? country,
final PhoneNumberType phoneNumberType = PhoneNumberType.mobile,
final PhoneNumberFormat phoneNumberFormat = PhoneNumberFormat.international,
final bool removeCountryCodeFromResult = false,
final bool inputContainsCountryCode = true,
}) {
return FlutterLibphonenumberPlatform.instance.formatNumberSync(
number,
country: country,
phoneNumberType: phoneNumberType,
phoneNumberFormat: phoneNumberFormat,
removeCountryCodeFromResult: removeCountryCodeFromResult,
inputContainsCountryCode: inputContainsCountryCode,
);
}