MobilePhone.withNumber constructor

MobilePhone.withNumber(
  1. String? name,
  2. String? phoneNumber
)
Initializes a new instance of the The name associated with the mobile phone. The mobile phone number.

Implementation

MobilePhone.withNumber(String? name, String? phoneNumber)
  : _name = name,
    _phoneNumber = phoneNumber;