clear method

void clear()

Sets the message, to empty.

After calling this function, text, attachments and mentionedUsers will all be empty.

Calling this will notify all the listeners of this StreamMessageInputController that they need to update (calls notifyListeners). For this reason, this method should only be called between frames, e.g. in response to user actions, not during the build, layout, or paint phases.

Implementation

void clear() {
  message = Message();
}