PhoneNumber.withValue constructor

PhoneNumber.withValue(
  1. String value
)

PhoneNumber.withValue the constructor that should be used in all useCases.

Implementation

factory PhoneNumber.withValue(String value) {
  return PhoneNumber._(
    validatePhoneNumber(value),
  );
}