addPart method Null safety

void addPart(
  1. MimePart part
)

Implementation

void addPart(MimePart part) {
  parts ??= <MimePart>[];
  parts!.add(part);
}