GetPhoneNumberInfoSync constructor

const GetPhoneNumberInfoSync({
  1. required String languageCode,
  2. required String phoneNumberPrefix,
})

Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously

Implementation

const GetPhoneNumberInfoSync({
  required this.languageCode,
  required this.phoneNumberPrefix,
});