ChatViewEvent class

ChatView events you can observer and react to. To listen to event you need to register:

ChatViewController.on(ChatViewEvent.chatLoaded, (bool controlsEnabled) => {});

Constructors

ChatViewEvent.new({required String eventName, dynamic payload})
Default constructor with all params.
ChatViewEvent.fromJson(Map<String, dynamic> json)
Parsing ChatViewEvent from json.
factory

Properties

eventName String
Event's name.
final
hashCode int
The hash code for this object.
no setterinherited
payload → dynamic
Event's payload.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

attachmentPreviewOpened → const String
Called when attachment from chat has been interacted. It is available only for Android platform.
chatDisconnected → const String
Called when chat connection has been stopped.
chatLoaded → const String
Called when chat has been loaded and connection established. Contains bool controlsEnabled, if true there was no error. It is available only for Android platform.
chatRawMessageReceived → const String
Called for every new message in the chat. It provides raw message data. It is available only for Android platform.
chatReconnected → const String
Called when chat connection has been re-established.
chatViewChanged → const String
Called when chat view has changed. Chat view can be one of the following: LOADING, THREAD_LIST, LOADING_THREAD, THREAD, CLOSED_THREAD, SINGLE_MODE_THREAD;
chatWidgetInfoUpdated → const String
Called when chat WidgetInfo has been updated. It provides information about chat widget. It is available only for Android platform.
chatWidgetThemeChanged → const String
Called when chat theme has changed. It is available only for Android platform.
exitChatPressed → const String
Called by default ChatView Toolbar back navigation logic to exit chat. You are supposed to hide/remove ChatView. It is available only for Android platform.