TextMessage.from constructor

TextMessage.from({
  1. required String text,
})

To create a new TextMessage with text content.

Implementation

TextMessage.from({
  required String text,
}) {
  this.text = text;
}