copyWith method

PhoneNumber copyWith({
  1. String? data,
  2. bool? primary,
  3. PhoneNumberType? type,
})

Implementation

PhoneNumber copyWith(
    {String? data, bool? primary, enums.PhoneNumberType? type}) {
  return PhoneNumber(
      data: data ?? this.data,
      primary: primary ?? this.primary,
      type: type ?? this.type);
}