getMessageItemMenuBuilder method

Widget getMessageItemMenuBuilder({
  1. Key? key,
  2. MessageItemMenuBuilderWidgets? widgets,
  3. required MessageItemMenuBuilderData data,
  4. required MessageItemMenuBuilderMethods methods,
})

Implementation

Widget getMessageItemMenuBuilder({
  Key? key,
  MessageItemMenuBuilderWidgets? widgets,
  required MessageItemMenuBuilderData data,
  required MessageItemMenuBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageItemMenuBuilder != null) {
    widget = _messageItemMenuBuilder!(
      key: key,
      widgets: widgets ??
          MessageItemMenuBuilderWidgets(
            messageItemMenuView: TencentCloudChatMessageItemWithMenu(
              data: data,
              methods: methods,
            ),
          ),
      data: data,
      methods: methods,
    );
  }

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