copyWith method

Screen2 copyWith({
  1. Caption? heading,
  2. Caption? body,
  3. Caption? cta,
  4. String? bgImageId,
  5. String? bgImageUrl,
})

Implementation

Screen2 copyWith({
  Caption? heading,
  Caption? body,
  Caption? cta,
  String? bgImageId,
  String? bgImageUrl,
}) =>
    Screen2(
      heading: heading ?? this.heading,
      body: body ?? this.body,
      cta: cta ?? this.cta,
      bgImageId: bgImageId ?? this.bgImageId,
      bgImageUrl: bgImageUrl ?? this.bgImageUrl,
    );