senderInitials property
String
get
senderInitials
昵称头像
Implementation
String get senderInitials {
if (message.ownerName == null) return "";
List<String> chars = message.ownerName!.split(" ");
if (chars.length > 1) {
return chars[0];
} else {
return message.ownerName![0];
}
}