copyWith method

RCKEmojiSendButtonConfig copyWith({
  1. String? text,
  2. double? width,
  3. double? height,
  4. Color? backgroundColor,
  5. TextStyle? textStyle,
  6. double? borderRadius,
  7. EmojiSendButtonPosition? position,
  8. EdgeInsets? margin,
})

Implementation

RCKEmojiSendButtonConfig copyWith({
  String? text,
  double? width,
  double? height,
  Color? backgroundColor,
  TextStyle? textStyle,
  double? borderRadius,
  EmojiSendButtonPosition? position,
  EdgeInsets? margin,
}) {
  return RCKEmojiSendButtonConfig(
    text: text ?? this.text,
    width: width ?? this.width,
    height: height ?? this.height,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textStyle: textStyle ?? this.textStyle,
    borderRadius: borderRadius ?? this.borderRadius,
    position: position ?? this.position,
    margin: margin ?? this.margin,
  );
}