copyWith method

VariableCostsModel copyWith({
  1. double? cost,
  2. String? costName,
  3. DateTime? createdAt,
  4. String? id,
  5. DateTime? updatedAt,
})

Implementation

VariableCostsModel copyWith({
  double? cost,
  String? costName,
  DateTime? createdAt,
  String? id,
  DateTime? updatedAt,
}) {
  return VariableCostsModel(
    cost: cost ?? this.cost,
    costName: costName ?? this.costName,
    createdAt: createdAt ?? this.createdAt,
    id: id ?? this.id,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}