copyWith method

BackgroundEntity copyWith({
  1. String? backgroundImageId,
  2. bool? useProfilePhotoAsBackground,
  3. int? beginGradientPosition,
  4. int? endGradientPosition,
  5. ShadowEntity? shadow,
  6. List<DecorationColorEntity>? decorationColors,
  7. BorderRadiusEntity? borderRadius,
  8. bool? border,
  9. EdgeInsetsGeometryEntity? padding,
  10. EdgeInsetsGeometryEntity? margin,
})

Implementation

BackgroundEntity copyWith({
  String? backgroundImageId,
  bool? useProfilePhotoAsBackground,
  int? beginGradientPosition,
  int? endGradientPosition,
  ShadowEntity? shadow,
  List<DecorationColorEntity>? decorationColors,
  BorderRadiusEntity? borderRadius,
  bool? border,
  EdgeInsetsGeometryEntity? padding,
  EdgeInsetsGeometryEntity? margin,
}) {
  return BackgroundEntity(
    backgroundImageId: backgroundImageId ?? this.backgroundImageId,
    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,
  );
}