getMessageRowBuilder method

  1. @override
Widget getMessageRowBuilder({
  1. Key? key,
  2. required MessageRowBuilderWidgets widgets,
  3. required MessageRowBuilderData data,
  4. required MessageRowBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageRowBuilder({
  Key? key,
  required MessageRowBuilderWidgets widgets,
  required MessageRowBuilderData data,
  required MessageRowBuilderMethods methods,
}) {
  Widget? widget;

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

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