copyWith method

  1. @override
EmojiNode copyWith({
  1. String? shortcode,
  2. String? emoji,
})
override

Creates a copy of this node

Implementation

@override
EmojiNode copyWith({String? shortcode, String? emoji}) {
  return EmojiNode(
    shortcode: shortcode ?? this.shortcode,
    emoji: emoji ?? this.emoji,
  );
}