text static method

Content text(
  1. String text
)

Return a Content with TextPart.

Implementation

static Content text(String text) => Content('user', [TextPart(text)]);