copyWith method

Merchant copyWith({
  1. String? id,
  2. String? name,
  3. String? address,
  4. String? zipCode,
  5. String? city,
  6. String? country,
  7. String? fiscalCode,
  8. String? profileImgUrl,
  9. List<PointOfSale>? posList,
})

Implementation

Merchant copyWith({
  String? id,
  String? name,
  String? address,
  String? zipCode,
  String? city,
  String? country,
  String? fiscalCode,
  String? profileImgUrl,
  List<PointOfSale>? posList,
}) {
  return Merchant(
    id: id ?? this.id,
    name: name ?? this.name,
    address: address ?? this.address,
    zipCode: zipCode ?? this.zipCode,
    city: city ?? this.city,
    country: country ?? this.country,
    fiscalCode: fiscalCode ?? this.fiscalCode,
    profileImgUrl: profileImgUrl ?? this.profileImgUrl,
    posList: posList ?? this.posList,
  );
}