addTextPlain method Null safety

PartBuilder addTextPlain(
  1. String text,
  2. {TransferEncoding transferEncoding = TransferEncoding.automatic,
  3. CharacterSet characterSet = CharacterSet.utf8,
  4. ContentDispositionHeader? disposition,
  5. bool insert = false}
)

Adds a plain text part

Compare addText() for details.

Implementation

PartBuilder addTextPlain(String text,
    {TransferEncoding transferEncoding = TransferEncoding.automatic,
    CharacterSet characterSet = CharacterSet.utf8,
    ContentDispositionHeader? disposition,
    bool insert = false}) {
  return addText(text,
      transferEncoding: transferEncoding,
      characterSet: characterSet,
      disposition: disposition,
      insert: insert);
}