acoutts / flutter_libphonenumber

Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps. Includes a TextInputFormatter to allow real-time AsYouType formatting.
MIT License
60 stars 73 forks source link

Typed response from parse method #73

Open vasilich6107 opened 2 months ago

vasilich6107 commented 2 months ago

Hey Thanks for your work Could we have a type response(instead of map string/dynamic) from parse method?

acoutts commented 2 months ago

Can you provide any more context?

vasilich6107 commented 2 months ago

Hey @acoutts Just updated the dscription

vasilich6107 commented 2 months ago

I mean - not a raw json like we have no

image

but the object with fields

like

class XXX {
   final String countryCode;
   final String e164;

   ...fromJson

}