copyWith method

BackgroundModel copyWith({
  1. PublicMediumModel? backgroundImage,
  2. bool? useProfilePhotoAsBackground,
  3. StartGradientPosition? beginGradientPosition,
  4. EndGradientPosition? endGradientPosition,
  5. ShadowModel? shadow,
  6. List<DecorationColorModel>? decorationColors,
  7. BorderRadiusModel? borderRadius,
  8. bool? border,
  9. EdgeInsetsGeometryModel? padding,
  10. 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,
  );
}