copyWith method

ApiFriend copyWith({
  1. String? idx,
  2. String? myIdx,
  3. String? otherIdx,
  4. String? block,
  5. String? reason,
  6. String? createdAt,
  7. String? updatedAt,
})

Implementation

ApiFriend copyWith({
  String? idx,
  String? myIdx,
  String? otherIdx,
  String? block,
  String? reason,
  String? createdAt,
  String? updatedAt,
}) {
  return ApiFriend(
    idx: idx ?? this.idx,
    myIdx: myIdx ?? this.myIdx,
    otherIdx: otherIdx ?? this.otherIdx,
    block: block ?? this.block,
    reason: reason ?? this.reason,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}