contactShowName property

String get contactShowName

The name used for display, if the name is empty, the id is displayed.

Implementation

String get contactShowName {
  if (remark != null &&
      remark!.isNotEmpty &&
      type == ChatUIKitProfileType.contact) {
    return remark!;
  }

  if (showName != null && showName!.isNotEmpty) {
    return showName!;
  }
  return id;
}