setAttachment method Null safety
- NIMMessageAttachment attachment
Implementation
void setAttachment(NIMMessageAttachment attachment) {
attach = jsonEncode(attachment.toMap());
}
void setAttachment(NIMMessageAttachment attachment) {
attach = jsonEncode(attachment.toMap());
}