getMessageRowMessageSenderAvatarBuilder method

  1. @override
Widget getMessageRowMessageSenderAvatarBuilder({
  1. Key? key,
  2. MessageRowMessageSenderAvatarBuilderWidgets? widgets,
  3. required MessageRowMessageSenderAvatarBuilderData data,
  4. required MessageRowMessageSenderAvatarBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageRowMessageSenderAvatarBuilder({
  Key? key,
  MessageRowMessageSenderAvatarBuilderWidgets? widgets,
  required MessageRowMessageSenderAvatarBuilderData data,
  required MessageRowMessageSenderAvatarBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageRowMessageSenderAvatarBuilder != null) {
    widget = _messageRowMessageSenderAvatarBuilder!(
      key: key,
      widgets: widgets ??
          MessageRowMessageSenderAvatarBuilderWidgets(
            messageRowMessageSenderAvatarView: TencentCloudChatMessageRowMessageSenderAvatar(
              data: data,
              methods: methods,
            ),
          ),
      data: data,
      methods: methods,
    );
  }

  return widget ??
      TencentCloudChatMessageRowMessageSenderAvatar(
        key: key,
        data: data,
        methods: methods,
      );
}