PhoneNumber constructor

PhoneNumber({@required String number @required String country })

Implementation

factory PhoneNumber({@required String number, @required String country}) {
  assert(country != null, 'PhoneNumber [country] should not be null');
  assert(number != null, 'PhoneNumber [number] should not be null');
  return PhoneNumber._(number, country);
}