getAttachmentById method
Implementation
Id getAttachmentById(String id) => attachments.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);
Id getAttachmentById(String id) => attachments.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);