copyWith method

Screen1 copyWith({
  1. Caption? heading,
  2. Caption? caption,
  3. Task? taskHeading,
  4. Task? taskCaption,
  5. String? taskCardColor,
  6. String? taskIconId,
  7. String? progressBarColor1,
  8. String? progressBarColor2,
  9. String? bgColor,
  10. String? bannerImageId,
  11. String? bannerImageUrl,
  12. String? taskIconUrl,
})

Implementation

Screen1 copyWith({
  Caption? heading,
  Caption? caption,
  Task? taskHeading,
  Task? taskCaption,
  String? taskCardColor,
  String? taskIconId,
  String? progressBarColor1,
  String? progressBarColor2,
  String? bgColor,
  String? bannerImageId,
  String? bannerImageUrl,
  String? taskIconUrl,
}) =>
    Screen1(
      heading: heading ?? this.heading,
      caption: caption ?? this.caption,
      taskHeading: taskHeading ?? this.taskHeading,
      taskCaption: taskCaption ?? this.taskCaption,
      taskCardColor: taskCardColor ?? this.taskCardColor,
      taskIconId: taskIconId ?? this.taskIconId,
      progressBarColor1: progressBarColor1 ?? this.progressBarColor1,
      progressBarColor2: progressBarColor2 ?? this.progressBarColor2,
      bgColor: bgColor ?? this.bgColor,
      bannerImageId: bannerImageId ?? this.bannerImageId,
      bannerImageUrl: bannerImageUrl ?? this.bannerImageUrl,
      taskIconUrl: taskIconUrl ?? this.taskIconUrl,
    );