text static method

Raw text(
  1. String text, {
  2. bool newline = PsdkConst.defEnableNewline,
  3. String? charset,
})

Implementation

static Raw text(
  String text, {
  bool newline = PsdkConst.defEnableNewline,
  String? charset,
}) {
  var raw = Raw();
  raw._mode = RawMode.text;
  raw._text = text;
  raw._charset = charset;
  raw._newline = newline;
  return raw;
}