getMessageDynamicButtonBuilder method

  1. @override
Widget getMessageDynamicButtonBuilder({
  1. Key? key,
  2. MessageDynamicButtonBuilderWidgets? widgets,
  3. required MessageDynamicButtonBuilderData data,
  4. required MessageDynamicButtonBuilderMethods methods,
})
override

Implementation

@override
Widget getMessageDynamicButtonBuilder({
  Key? key,
  MessageDynamicButtonBuilderWidgets? widgets,
  required MessageDynamicButtonBuilderData data,
  required MessageDynamicButtonBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageDynamicButtonBuilder != null) {
    widget = _messageDynamicButtonBuilder!(
      key: key,
      widgets: widgets ??
          MessageDynamicButtonBuilderWidgets(
            messageDynamicButtonView: TencentCloudChatMessageListViewDynamicButton(
              data: data,
              methods: methods,
            ),
          ),
      data: data,
      methods: methods,
    );
  }

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