copyWith method

OnboardingPage copyWith({
  1. Widget? image,
  2. String? title,
  3. String? description,
  4. Color? backgroundColor,
  5. TextStyle? titleStyle,
  6. TextStyle? descriptionStyle,
  7. EdgeInsets? contentPadding,
  8. Widget? footer,
  9. BoxDecoration? imageBoxDecoration,
  10. double? imageHeight,
  11. double? imageWidth,
  12. AlignmentGeometry? imageAlignment,
})

Implementation

OnboardingPage copyWith({
  Widget? image,
  String? title,
  String? description,
  Color? backgroundColor,
  TextStyle? titleStyle,
  TextStyle? descriptionStyle,
  EdgeInsets? contentPadding,
  Widget? footer,
  BoxDecoration? imageBoxDecoration,
  double? imageHeight,
  double? imageWidth,
  AlignmentGeometry? imageAlignment,
}) {
  return OnboardingPage(
    image: image ?? this.image,
    title: title ?? this.title,
    description: description ?? this.description,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    titleStyle: titleStyle ?? this.titleStyle,
    descriptionStyle: descriptionStyle ?? this.descriptionStyle,
    contentPadding: contentPadding ?? this.contentPadding,
    footer: footer ?? this.footer,
    imageBoxDecoration: imageBoxDecoration ?? this.imageBoxDecoration,
    imageHeight: imageHeight ?? this.imageHeight,
    imageWidth: imageWidth ?? this.imageWidth,
    imageAlignment: imageAlignment ?? this.imageAlignment,
  );
}