ChatState class

Constructors

ChatState({List<ChatMessage> messages = const [], bool isLoading = false, bool isRestoring = false, bool isReadOnly = false, String? error, List<String> prereqGapConcepts = const []})
const

Properties

error String?
final
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
final
isReadOnly bool
final
isRestoring bool
final
messages List<ChatMessage>
final
prereqGapConcepts List<String>
Concept names extracted from [PREREQUISITE_GAP: …] tags the tutor has emitted in this session. Order-preserving + deduped. The chat screen renders these as a soft banner above the composer; the user can dismiss any to clear it.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<ChatMessage>? messages, bool? isLoading, bool? isRestoring, bool? isReadOnly, String? error, List<String>? prereqGapConcepts}) ChatState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited