ChatState constructor

const ChatState({
  1. List<ChatMessage> messages = const [],
  2. bool isLoading = false,
  3. bool isRestoring = false,
  4. bool isReadOnly = false,
  5. String? error,
})

Implementation

const ChatState({
  this.messages = const [],
  this.isLoading = false,
  this.isRestoring = false,
  this.isReadOnly = false,
  this.error,
});