getMessageInputBuilder method

  1. @override
Widget getMessageInputBuilder({
  1. Key? key,
  2. MessageInputBuilderWidgets? widgets,
  3. required MessageInputBuilderData data,
  4. required MessageInputBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageInputBuilder({
  Key? key,
  MessageInputBuilderWidgets? widgets,
  required MessageInputBuilderData data,
  required MessageInputBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageInputBuilder != null) {
    widget = _messageInputBuilder!(
      key: key,
      data: data,
      methods: methods,
      widgets: widgets ??
          MessageInputBuilderWidgets(
              messageInput: TencentCloudChatMessageInput(
            data: data,
            methods: methods,
          )),
    );
  }

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