copyWith method

Star copyWith({
  1. double? progress,
  2. double? fat,
  3. Color? fillColor,
  4. Color? emptyColor,
  5. int? num,
  6. double? size,
})

Implementation

Star copyWith(
        {double? progress,
        double? fat,
        Color? fillColor,
        Color? emptyColor,
        int? num,
        double? size}) =>
    Star(
      progress: progress ?? this.progress,
      fat: fat ?? this.fat,
      fillColor: fillColor ?? this.fillColor,
      emptyColor: emptyColor ?? this.emptyColor,
      num: num ?? this.num,
      size: size ?? this.size,
    );