copyWith method

ReactionsStyle copyWith({
  1. TextStyle? reactionTextStyle,
  2. TextStyle? reactionCountTextStyle,
  3. double? width,
  4. double? height,
  5. Color? background,
  6. Gradient? gradient,
  7. BoxBorder? border,
  8. double? borderRadius,
  9. Color? primaryBackgroundColor,
  10. BoxBorder? primaryBorder,
  11. EdgeInsets? margin,
  12. 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);
}