getAttachmentOptionsBuilder method

  1. @override
Widget getAttachmentOptionsBuilder({
  1. Key? key,
  2. MessageAttachmentOptionsBuilderWidgets? widgets,
  3. required MessageAttachmentOptionsBuilderData data,
  4. required MessageAttachmentOptionsBuilderMethods methods,
})
override

Implementation

@override
Widget getAttachmentOptionsBuilder({
  Key? key,
  MessageAttachmentOptionsBuilderWidgets? widgets,
  required MessageAttachmentOptionsBuilderData data,
  required MessageAttachmentOptionsBuilderMethods methods,
}) {
  Widget? widget;

  if (_messageAttachmentOptionsBuilder != null) {
    widget = _messageAttachmentOptionsBuilder!(
      key: key,
      methods: methods,
      data: data,
      widgets: widgets ??
          MessageAttachmentOptionsBuilderWidgets(
            messageAttachmentOptionsView: TencentCloudChatMessageAttachmentOptionsWidget(
              methods: methods,
              data: data,
            ),
          ),
    );
  }

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