copyWith method

FoulsModel copyWith({
  1. int? id,
  2. String? reason,
  3. dynamic orderId,
  4. DateTime? createdAt,
})

Implementation

FoulsModel copyWith({
  int? id,
  String? reason,
  dynamic orderId,
  DateTime? createdAt,
}) =>
    FoulsModel(
      id: id ?? this.id,
      reason: reason ?? this.reason,
      orderId: orderId ?? this.orderId,
      createdAt: createdAt ?? this.createdAt,
    );