copyWith method

Receiver copyWith({
  1. String? id,
  2. String? name,
})

Implementation

Receiver copyWith({
  String? id,
  String? name,
}) {
  return Receiver(
    id: id ?? this.id,
    name: name ?? this.name,
  );
}