copyWith method

VCardLabel copyWith({
  1. VCardIdentifier? type,
  2. String? value,
})

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

Implementation

VCardLabel copyWith({
  VCardIdentifier? type,
  String? value,
}) =>
    VCardLabel(
      type: type ?? this.type,
      value: value ?? this.value,
    );