getMessageHeader method

  1. @override
Widget getMessageHeader({
  1. Key? key,
  2. required MessageHeaderBuilderWidgets widgets,
  3. required MessageHeaderBuilderData data,
  4. required MessageHeaderBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageHeader({
  Key? key,
  required MessageHeaderBuilderWidgets widgets,
  required MessageHeaderBuilderData data,
  required MessageHeaderBuilderMethods methods,
}) {
  Widget? widget;

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

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