copyWith method

RCKEmojiConfig copyWith({
  1. Color? backgroundColor,
  2. double? height,
  3. int? rowCount,
  4. int? columnCount,
  5. double? emojiSize,
  6. double? rowSpacing,
  7. double? columnSpacing,
  8. EdgeInsets? padding,
  9. RCKEmojiPageIndicatorConfig? pageIndicatorConfig,
  10. Widget? deleteIcon,
  11. RCKEmojiSendButtonConfig? sendButtonConfig,
  12. List<String>? customEmojis,
})

Implementation

RCKEmojiConfig copyWith({
  Color? backgroundColor,
  double? height,
  int? rowCount,
  int? columnCount,
  double? emojiSize,
  double? rowSpacing,
  double? columnSpacing,
  EdgeInsets? padding,
  RCKEmojiPageIndicatorConfig? pageIndicatorConfig,
  Widget? deleteIcon,
  RCKEmojiSendButtonConfig? sendButtonConfig,
  List<String>? customEmojis,
}) {
  return RCKEmojiConfig(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    height: height ?? this.height,
    rowCount: rowCount ?? this.rowCount,
    columnCount: columnCount ?? this.columnCount,
    emojiSize: emojiSize ?? this.emojiSize,
    rowSpacing: rowSpacing ?? this.rowSpacing,
    columnSpacing: columnSpacing ?? this.columnSpacing,
    padding: padding ?? this.padding,
    pageIndicatorConfig: pageIndicatorConfig ?? this.pageIndicatorConfig,
    deleteIcon: deleteIcon ?? this.deleteIcon,
    sendButtonConfig: sendButtonConfig ?? this.sendButtonConfig,
    customEmojis: customEmojis ?? this.customEmojis,
  );
}