void addText(String name, String text)

Source

void addText(String name, String text) {
  _addResource("Text", name, "", new Future.value(text));
}