getMessageRowMessageSenderNameBuilder method

  1. @override
Widget getMessageRowMessageSenderNameBuilder({
  1. Key? key,
  2. MessageRowMessageSenderNameBuilderWidgets? widgets,
  3. required MessageRowMessageSenderNameBuilderData data,
  4. required MessageRowMessageSenderNameBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageRowMessageSenderNameBuilder({
  Key? key,
  MessageRowMessageSenderNameBuilderWidgets? widgets,
  required MessageRowMessageSenderNameBuilderData data,
  required MessageRowMessageSenderNameBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageRowMessageSenderNameBuilder != null) {
    widget = _messageRowMessageSenderNameBuilder!(
      key: key,
      widgets: widgets ??
          MessageRowMessageSenderNameBuilderWidgets(
            messageRowMessageSenderNameView: TencentCloudChatMessageRowMessageSenderName(
              data: data,
              methods: methods,
            ),
          ),
      data: data,
      methods: methods,
    );
  }

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