copyWith method

RichTextBotCommand copyWith({
  1. RichText? text,
  2. String? botCommand,
})

Implementation

RichTextBotCommand copyWith({RichText? text, String? botCommand}) =>
    RichTextBotCommand(
      text: text ?? this.text,
      botCommand: botCommand ?? this.botCommand,
    );