copyWith method

PlanEntity copyWith({
  1. String? id,
  2. int? importance,
  3. String? name,
  4. String? imagePath,
  5. Features? features,
  6. String? price,
  7. String? currency,
  8. String? typePlan,
})

Implementation

PlanEntity copyWith({
  String? id,
  int? importance,
  String? name,
  String? imagePath,
  Features? features,
  String? price,
  String? currency,
  String? typePlan,
}) =>
    PlanEntity(
      id: id ?? this.id,
      importance: importance ?? this.importance,
      name: name ?? this.name,
      imagePath: imagePath ?? this.imagePath,
      features: features ?? this.features,
      price: price ?? this.price,
      currency: currency ?? this.currency,
      typePlan: typePlan ?? this.typePlan,
    );