copyWith method
OnboardingPage
copyWith({
- Widget? image,
- String? title,
- String? description,
- Color? backgroundColor,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- EdgeInsets? contentPadding,
- BoxDecoration? imageBoxDecoration,
- double? imageHeight,
- double? imageWidth,
- 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,
);
}