getMessageLayoutBuilder method

  1. @override
Widget getMessageLayoutBuilder({
  1. Key? key,
  2. required MessageLayoutBuilderWidgets widgets,
  3. required MessageLayoutBuilderData data,
  4. required MessageLayoutBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageLayoutBuilder({
  Key? key,
  required MessageLayoutBuilderWidgets widgets,
  required MessageLayoutBuilderData data,
  required MessageLayoutBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageLayoutBuilder != null) {
    widget = _messageLayoutBuilder!(
      key: key,
      data: data,
      widgets: widgets,
      methods: methods,
    );
  }

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