copyWith method

VCardTelephone copyWith({
  1. bool? preferred,
  2. List<VCardIdentifier>? types,
  3. String? value,
  4. List<String>? ext,
})

Creates a copy of this VCardTelephone but with the given fields replaced with the new values.

Implementation

VCardTelephone copyWith({
  bool? preferred,
  List<VCardIdentifier>? types,
  String? value,
  List<String>? ext,
}) =>
    VCardTelephone(
      preferred: preferred ?? this.preferred,
      types: types ?? this.types,
      value: value ?? this.value,
      ext: ext ?? this.ext,
    );