copyWith method

TeethModel copyWith(
  1. String? id,
  2. Color? selectedColor,
  3. Color? unSelectedColor,
  4. int? stroke,
)

Implementation

TeethModel copyWith(final String? id, final Color? selectedColor,
        final Color? unSelectedColor, final int? stroke) =>
    TeethModel(
      selectedColor: selectedColor ?? this.selectedColor,
      stroke: stroke ?? this.stroke,
      id: id ?? this.id,
      unSelectedColor: unSelectedColor ?? this.unSelectedColor,
    );