copyWith method

ReviewModel copyWith({
  1. int? id,
  2. int? rate,
  3. String? customComment,
  4. int? orderId,
  5. int? clientId,
  6. dynamic vendorId,
  7. DateTime? createdAt,
})

Implementation

ReviewModel copyWith({
  int? id,
  int? rate,
  String? customComment,
  int? orderId,
  int? clientId,
  dynamic vendorId,
  DateTime? createdAt,
}) =>
    ReviewModel(
      id: id ?? this.id,
      rate: rate ?? this.rate,
      customComment: customComment ?? this.customComment,
      orderId: orderId ?? this.orderId,
      clientId: clientId ?? this.clientId,
      vendorId: vendorId ?? this.vendorId,
      createdAt: createdAt ?? this.createdAt,
    );