getMessageForwardBuilder method

  1. @override
Widget getMessageForwardBuilder({
  1. Key? key,
  2. MessageForwardBuilderWidgets? widgets,
  3. required MessageForwardBuilderData data,
  4. required MessageForwardBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageForwardBuilder({
  Key? key,
  MessageForwardBuilderWidgets? widgets,
  required MessageForwardBuilderData data,
  required MessageForwardBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageForwardBuilder != null) {
    widget = _messageForwardBuilder!(
      key: key,
      widgets: widgets ??
          MessageForwardBuilderWidgets(
            messageForwardView: TencentCloudChatMessageForward(
              key: key,
              widgets: widgets,
              data: data,
              methods: methods,
            ),
          ),
      data: data,
      methods: methods,
    );
  }

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