addPhoneNumber method

void addPhoneNumber(
  1. String phone, [
  2. String? type
])

Implementation

void addPhoneNumber(String phone, [String? type]) {
  _phoneNumbers ??= [];
  _phoneTypes ??= [];
  _phoneNumbers!.add(phone);
  _phoneTypes!.add(type);
}