getConversationItemAvatarBuilder method

  1. @override
Widget getConversationItemAvatarBuilder(
  1. V2TimConversation conversation,
  2. bool isOnline
)
override

Implementation

@override
Widget getConversationItemAvatarBuilder(
    V2TimConversation conversation, bool isOnline) {
  Widget? widget;

  if (_conversationItemAvatarBuilder != null) {
    widget = _conversationItemAvatarBuilder!(conversation, isOnline);
  }

  return widget ??
      TencentCloudChatConversationItemAvatar(
        conversation: conversation,
        isOnline: isOnline,
      );
}