command property

void command=(String command)

Sets a command for the message.

Implementation

set command(String command) {
  // Setting the command should also clear the text and attachments.
  message = message.copyWith(
    text: '',
    attachments: [],
    command: command,
  );
}