ChatThreadMessages constructor
const
ChatThreadMessages({
- Key? key,
- required RoomClient? room,
- required String path,
- required ScrollController scrollController,
- Object? composerTapRegionGroupId,
- required List<
MeshElement> messages, - required List<
Participant> online, - required bool showCompletedToolCalls,
- bool shouldShowAuthorNames = true,
- bool startChatCentered = false,
- bool showTyping = false,
- bool showListening = false,
- String? threadStatus,
- DateTime? threadStatusStartedAt,
- String? threadStatusMode,
- int? threadStatusTotalBytes,
- int? threadStatusLinesAdded,
- int? threadStatusLinesRemoved,
- List<
PendingAgentMessage> pendingMessages = const [], - String? pendingItemId,
- void onCancel()?,
- String? agentName,
- Widget messageHeaderBuilder(
- BuildContext,
- MeshDocument,
- MeshElement
- Widget fileInThreadBuilder(
- BuildContext context,
- String path
- FutureOr<
void> openFile(- String path
- Map<
String, MessageBuilder> ? messageBuilders, - String? emptyStateTitle,
- String? emptyStateDescription,
- Widget? emptyState,
- ValueChanged<
bool> ? onShowCompletedToolCallsChanged, - ThreadStorageSaveSurfacePresenter? mobileStorageSaveSurfacePresenter,
- 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,
});