encodeText abstract method

String encodeText(
  1. String text, {
  2. Codec codec = encodingUtf8,
  3. bool wrap = true,
})

Encodes the specified text in the chosen codec's format. text specifies the text to be encoded. codec the optional codec, which defaults to utf8. Set wrap to false in case you do not want to wrap lines.

Implementation

String encodeText(String text,
    {convert.Codec codec = encodingUtf8, bool wrap = true});