MessageBody.withText constructor

MessageBody.withText(
  1. String? text, [
  2. BodyType bodyType = enumerations.BodyType.HTML
])
Initializes a new instance of the The type of the message body's text. The text of the message body.

Implementation

MessageBody.withText(String? text,
    [enumerations.BodyType bodyType = enumerations.BodyType.HTML]) {
  this._bodyType = bodyType;
  this._text = text;
}