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