SupportState class

Constructors

SupportState({SupportStatus status = SupportStatus.idle, String? userId, List<Conversation> conversations = const [], Map<String, List<Message>> messages = const {}, int unread = 0, Map<String, int> unreadBy = const {}, bool open = false, String? activeConversationId, String? error, Map<String, String> typing = const {}, bool? aiConsent, Subscription? subscription, WidgetConfig? widget, Friction? friction})
const

Properties

activeConversationId → String?
final
aiConsent → bool?
AI-drafted replies: allowed, refused ("only a person"), or not asked yet (null).
final
conversations → List<Conversation>
final
error → String?
final
friction → Friction?
The friction chip to show now, or null.
final
hashCode → int
The hash code for this object.
no setterinherited
messages → Map<String, List<Message>>
final
open → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → SupportStatus
final
subscription → Subscription?
final
typing → Map<String, String>
Who is typing in each conversation right now: 'ai' (drafting) or 'founder' (typing in Shotik).
final
unread → int
final
unreadBy → Map<String, int>
final
userId → String?
final
widget → WidgetConfig?
final

Methods

conversation(String? id) → Conversation?
copyWith({SupportStatus? status, Object? userId = _keep, List<Conversation>? conversations, Map<String, List<Message>>? messages, int? unread, Map<String, int>? unreadBy, bool? open, Object? activeConversationId = _keep, Object? error = _keep, Map<String, String>? typing, Object? aiConsent = _keep, Object? subscription = _keep, Object? widget = _keep, Object? friction = _keep}) → SupportState
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