createSimpleTextMessage static method

dynamic createSimpleTextMessage(
  1. String text
)

Implementation

static createSimpleTextMessage(String text) {
  return {
    "type": "text",
    "elemType": 1,
    "textElem": {"text": text}
  };
}