allLeafParts property

List<BodyPart> get allLeafParts

Retrieves all leaf parts, ie all parts that have no children parts themselves.

This can be useful to check all content parts of the message

Implementation

List<BodyPart> get allLeafParts {
  final leafParts = <BodyPart>[];
  _addLeafParts(leafParts);
  return leafParts;
}