stream_chat library

Classes

AcceptInviteResponse
Model response for Channel.acceptInvite api call
Action
The class that contains the information about an action
AddMembersResponse
Model response for Channel.addMembers api call
Attachment
The class that contains the information about an attachment
Channel
This a the class that manages a specific channel.
ChannelClientState
The class that handles the state of the channel listening to the events
ChannelConfig
The class that contains the information about the configuration of a channel
ChannelModel
The class that contains the information about a channel
ChannelState
The class that contains the information about a command
ChannelStateResponse
Model response for Channel.query api call
Client
The official Dart client for Stream Chat, a service for building chat applications. This library can be used on any Dart project and on both mobile and web apps with Flutter. You can sign up for a Stream account at https://getstream.io/chat/ [...]
ClientState
The class that handles the state of the channel listening to the events
Command
The class that contains the information about a command
Device
The class that contains the information about a device
EmptyResponse
Model response for empty responses
Event
The class that contains the information about an event
EventChannel
The channel embedded in the event object
EventType
This class defines some basic event types
GetMessageResponse
Model response for Client.getMessage api call
GetMessagesByIdResponse
Model response for Channel.getMessagesById api call
InviteMembersResponse
Model response for Channel.inviteMembers api call
Level
Levels to control logging output. Logging can be enabled to include all levels above certain Level. Levels are ordered using an integer value Level.value. The predefined Level constants below are sorted as follows (in descending order): Level.SHOUT, Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST, and Level.ALL. [...]
ListDevicesResponse
Model response for Client.getDevices api call
Member
The class that contains the information about the user membership in a channel
Message
The class that contains the information about a message
MultipartFile
A file to be uploaded as part of a MultipartRequest. This doesn't need to correspond to a physical file. [...]
Mute
The class that contains the information about a muted user
NotificationService
Utility class to handle and show notifications
OwnUser
The class that defines the own user model This object can be found in Event
PaginationParams
Pagination options.
QueryChannelsResponse
Model response for Client.queryChannels api call
QueryMembersResponse
Model response for Client.queryChannels api call
QueryReactionsResponse
Model response for channel.getReactions api call
QueryRepliesResponse
Model response for Channel.getReplies api call
QueryUsersResponse
Model response for Client.queryUsers api call
Reaction
The class that defines a reaction
Read
The class that defines a read event
RejectInviteResponse
Model response for Channel.rejectInvite api call
RemoveMembersResponse
Model response for Channel.removeMembers api call
SearchMessagesResponse
Model response for Client.search api call
SendActionResponse
Model response for Channel.sendAction api call
SendFileResponse
Model response for Channel.sendFile api call
SendImageResponse
Model response for Channel.sendImage api call
SendMessageResponse
Model response for Channel.sendMessage api call
SendReactionResponse
Model response for Channel.sendReaction api call
SetGuestUserResponse
Model response for Client.setGuestUser api call
SortOption
Sorting options
SyncResponse
Model response for Client.resync api call
TranslatedMessage
A translated message It has an additional property called i18n
TranslateMessageResponse
Model response for Client.queryChannels api call
UpdateChannelResponse
Model response for Channel.update api call
UpdateMessageResponse
Model response for Client.updateMessage api call
UpdateUsersResponse
Model response for Client.updateUser api call
User
The class that defines the user model

Constants

KEY_API_KEY → const String
The key used to save the apiKey to sharedPreferences
'KEY_API_KEY'
KEY_TOKEN → const String
The key used to save the token to sharedPreferences
'KEY_TOKEN'
KEY_USER_ID → const String
The key used to save the userId to sharedPreferences
'KEY_USER_ID'

Enums

ConnectionStatus
Used to notify the WS connection status
DioErrorType
MessageSendingStatus
Enum defining the status of a sending message

Typedefs

DecoderFunction<T>(Map<String, dynamic>) → T
LogHandlerFunction(LogRecord record) → void
TokenProvider(String userId) Future<String>

Exceptions / Errors

DioError
DioError describes the error info when request failed.