natintosh / intl_phone_number_input

MIT License
164 stars 496 forks source link

[Question] Confusion about the attribute "DialCode" #369

Open Lilian-C opened 1 year ago

Lilian-C commented 1 year ago

Hello,

I'm a bit confused by the PhoneNumber.getRegionInfoFromPhoneNumber method.

Given the following code: PhoneNumber.getRegionInfoFromPhoneNumber("+33202020202", "FR");

I'm getting this result: PhoneNumber(phoneNumber: +33202020202, dialCode: FR, isoCode: FR)

Isn't the dialCode supposed to be "+33" instead of "FR" ?

Plugin version 0.7.2

Flutter version Flutter 3.0.4