generatePhoneNumber method

String generatePhoneNumber(
  1. PhoneNumber phoneNumber
)

Generate the phone number.

The phone number must be in the E.164 format.

Implementation

String generatePhoneNumber(PhoneNumber phoneNumber) {
  return '+${phoneNumber.countryCode}${phoneNumber.nationalNumber}';
}