flutter_libphonenumber library

Enums

PhoneNumberFormat
Used to format with national or international format
PhoneNumberType
Used for phone masks to know how to format numbers

Functions

format(String phone, String region) Future<Map<String, String>>
formatNumberSync(String number, {CountryWithPhoneCode? country, PhoneNumberType phoneNumberType = PhoneNumberType.mobile, PhoneNumberFormat phoneNumberFormat = PhoneNumberFormat.international, bool removeCountryCodeFromResult = false, bool inputContainsCountryCode = true}) String
getAllSupportedRegions() Future<Map<String, CountryWithPhoneCode>>
getFormattedParseResult(String phoneNumber, CountryWithPhoneCode country, {PhoneNumberType phoneNumberType = PhoneNumberType.mobile, PhoneNumberFormat phoneNumberFormat = PhoneNumberFormat.international}) Future<FormatPhoneResult?>
init({Map<String, CountryWithPhoneCode> overrides = const {}}) Future<void>
parse(String phone, {String? region}) Future<Map<String, dynamic>>