/flutter_libphonenumber

Flutter plugin wrapper to Google's libphonenumber

Primary LanguageDartMIT LicenseMIT

Flutter libphonenumber

Flutter plugin wrapper to Google's libphonenumber

Uses flutter platform channel to communicate with native implementation of libphonenumber.

This library uses below native libraries

NOTE

Only number parsing is implemented as of now

Usage

try{
  final parsed = await FlutterLibPhoneNumber.parse(_phoneController.text);
} on PlatformException catch(e){
  debugPrint(e.code +' --- '+e.message);
}

parse() takes 2 parameters.

numberString - Number string to be parsed

defaultRegion - default is IN. Used when country code prefix is not provided with phone number string