getTextHtmlPart method Null safety

PartBuilder? getTextHtmlPart()

Retrieves the first builder with a text/plain part.

Note that only this builder and direct children are queried.

Implementation

PartBuilder? getTextHtmlPart() {
  return getPart(MediaSubtype.textHtml);
}