PhoneNumber constructor

PhoneNumber({
  1. int? countryCode,
  2. Int64? nationalNumber,
  3. String? extension_3,
  4. bool? italianLeadingZero,
  5. String? rawInput,
  6. PhoneNumber_CountryCodeSource? countryCodeSource,
  7. String? preferredDomesticCarrierCode,
  8. int? numberOfLeadingZeros,
})

Implementation

factory PhoneNumber({
  $core.int? countryCode,
  $fixnum.Int64? nationalNumber,
  $core.String? extension_3,
  $core.bool? italianLeadingZero,
  $core.String? rawInput,
  PhoneNumber_CountryCodeSource? countryCodeSource,
  $core.String? preferredDomesticCarrierCode,
  $core.int? numberOfLeadingZeros,
}) {
  final $result = create();
  if (countryCode != null) {
    $result.countryCode = countryCode;
  }
  if (nationalNumber != null) {
    $result.nationalNumber = nationalNumber;
  }
  if (extension_3 != null) {
    $result.extension_3 = extension_3;
  }
  if (italianLeadingZero != null) {
    $result.italianLeadingZero = italianLeadingZero;
  }
  if (rawInput != null) {
    $result.rawInput = rawInput;
  }
  if (countryCodeSource != null) {
    $result.countryCodeSource = countryCodeSource;
  }
  if (preferredDomesticCarrierCode != null) {
    $result.preferredDomesticCarrierCode = preferredDomesticCarrierCode;
  }
  if (numberOfLeadingZeros != null) {
    $result.numberOfLeadingZeros = numberOfLeadingZeros;
  }
  return $result;
}