copyWith method
ReactionsStyle
copyWith(
{ - TextStyle? reactionTextStyle,
- TextStyle? reactionCountTextStyle,
- double? width,
- double? height,
- Color? background,
- Gradient? gradient,
- BoxBorder? border,
- double? borderRadius,
- Color? primaryBackgroundColor,
- BoxBorder? primaryBorder,
- EdgeInsets? margin,
- EdgeInsets? padding,
})
Implementation
ReactionsStyle copyWith(
{TextStyle? reactionTextStyle,
TextStyle? reactionCountTextStyle,
double? width,
double? height,
Color? background,
Gradient? gradient,
BoxBorder? border,
double? borderRadius,
Color? primaryBackgroundColor,
BoxBorder? primaryBorder,
EdgeInsets? margin,
EdgeInsets? padding}) {
return ReactionsStyle(
reactionTextStyle: reactionTextStyle ?? this.reactionTextStyle,
reactionCountTextStyle:
reactionCountTextStyle ?? this.reactionCountTextStyle,
width: width ?? this.width,
height: height ?? this.height,
background: background ?? this.background,
gradient: gradient ?? this.gradient,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
primaryBackgroundColor:
primaryBackgroundColor ?? this.primaryBackgroundColor,
primaryBorder: primaryBorder ?? this.primaryBorder,
margin: margin ?? this.margin,
padding: padding ?? this.padding);
}