ChatThreadMessages constructor

const ChatThreadMessages({
  1. Key? key,
  2. required RoomClient? room,
  3. required String path,
  4. required ScrollController scrollController,
  5. Object? composerTapRegionGroupId,
  6. required List<MeshElement> messages,
  7. required List<Participant> online,
  8. required bool showCompletedToolCalls,
  9. bool shouldShowAuthorNames = true,
  10. bool startChatCentered = false,
  11. bool showTyping = false,
  12. bool showListening = false,
  13. String? threadStatus,
  14. DateTime? threadStatusStartedAt,
  15. String? threadStatusMode,
  16. int? threadStatusTotalBytes,
  17. int? threadStatusLinesAdded,
  18. int? threadStatusLinesRemoved,
  19. List<PendingAgentMessage> pendingMessages = const [],
  20. String? pendingItemId,
  21. void onCancel()?,
  22. String? agentName,
  23. Widget messageHeaderBuilder(
    1. BuildContext,
    2. MeshDocument,
    3. MeshElement
    )?,
  24. Widget fileInThreadBuilder(
    1. BuildContext context,
    2. String path
    )?,
  25. FutureOr<void> openFile(
    1. String path
    )?,
  26. Map<String, MessageBuilder>? messageBuilders,
  27. String? emptyStateTitle,
  28. String? emptyStateDescription,
  29. Widget? emptyState,
  30. ValueChanged<bool>? onShowCompletedToolCallsChanged,
  31. ThreadStorageSaveSurfacePresenter? mobileStorageSaveSurfacePresenter,
  32. double? mobileUnderHeaderContentPadding,
})

Implementation

const ChatThreadMessages({
  super.key,
  required this.room,
  required this.path,
  required this.scrollController,
  this.composerTapRegionGroupId,
  required this.messages,
  required this.online,
  required this.showCompletedToolCalls,
  this.shouldShowAuthorNames = true,

  this.startChatCentered = false,
  this.showTyping = false,
  this.showListening = false,
  this.threadStatus,
  this.threadStatusStartedAt,
  this.threadStatusMode,
  this.threadStatusTotalBytes,
  this.threadStatusLinesAdded,
  this.threadStatusLinesRemoved,
  this.pendingMessages = const [],
  this.pendingItemId,
  this.onCancel,
  this.agentName,
  this.messageHeaderBuilder,
  this.fileInThreadBuilder,
  this.openFile,
  this.messageBuilders,
  this.emptyStateTitle,
  this.emptyStateDescription,
  this.emptyState,
  this.onShowCompletedToolCallsChanged,
  this.mobileStorageSaveSurfacePresenter,
  this.mobileUnderHeaderContentPadding,
});