insertPart method Null safety

void insertPart(
  1. MimePart part
)

Implementation

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