insertPart method

void insertPart(
  1. MimePart part
)

Inserts the part at the beginning of all parts.

Implementation

void insertPart(MimePart part) {
  parts ??= <MimePart>[];
  parts?.insert(0, part);
}