addIcon method

void addIcon(
  1. Map<String, Uint8List> icon
)

Adds an icon with the specified MIME type and data.

Implementation

void addIcon(Map<String, Uint8List> icon) {
  String decodedType = icon.keys.toList()[0];
  _checkValidIconType(decodedType);
  _iconRecords.add(
    MimeRecord(decodedType: decodedType, payload: icon.values.toList()[0]),
  );
}