copyWith method

InputBusinessChatLink copyWith({
  1. FormattedText? text,
  2. String? title,
})

Copy model with modified properties.

Properties:

  • text: Message draft text that will be added to the input field
  • title: Link title

Implementation

InputBusinessChatLink copyWith({
  FormattedText? text,
  String? title,
}) =>
    InputBusinessChatLink(
      text: text ?? this.text,
      title: title ?? this.title,
    );