copyWith method
BackgroundModel
copyWith({
- PublicMediumModel? backgroundImage,
- bool? useProfilePhotoAsBackground,
- StartGradientPosition? beginGradientPosition,
- EndGradientPosition? endGradientPosition,
- ShadowModel? shadow,
- List<
DecorationColorModel> ? decorationColors, - BorderRadiusModel? borderRadius,
- bool? border,
- EdgeInsetsGeometryModel? padding,
- EdgeInsetsGeometryModel? margin,
Implementation
BackgroundModel copyWith({
PublicMediumModel? backgroundImage,
bool? useProfilePhotoAsBackground,
StartGradientPosition? beginGradientPosition,
EndGradientPosition? endGradientPosition,
ShadowModel? shadow,
List<DecorationColorModel>? decorationColors,
BorderRadiusModel? borderRadius,
bool? border,
EdgeInsetsGeometryModel? padding,
EdgeInsetsGeometryModel? margin,
}) {
return BackgroundModel(
backgroundImage: backgroundImage ?? this.backgroundImage,
useProfilePhotoAsBackground:
useProfilePhotoAsBackground ?? this.useProfilePhotoAsBackground,
beginGradientPosition:
beginGradientPosition ?? this.beginGradientPosition,
endGradientPosition: endGradientPosition ?? this.endGradientPosition,
shadow: shadow ?? this.shadow,
decorationColors: decorationColors ?? this.decorationColors,
borderRadius: borderRadius ?? this.borderRadius,
border: border ?? this.border,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
);
}