flutter_chat_types library

Classes

CustomMessage
A class that represents custom message. Use metadata to store anything you want.
FileMessage
A class that represents file message.
ImageMessage
A class that represents image message.
Message
An abstract class that contains all variables and methods every message will have.
PartialCustom
A class that represents partial custom message.
PartialFile
A class that represents partial file message.
PartialImage
A class that represents partial image message.
PartialText
A class that represents partial text message.
PreviewData
A class that represents data obtained from the web resource (link preview).
PreviewDataImage
A utility class that forces image's width and height to be stored alongside the url.
Room
A class that represents a room where 2 or more participants can chat
TextMessage
A class that represents text message.
UnsupportedMessage
A class that represents unsupported message. Used for backwards compatibility. If chat's end user doesn't update to a new version where new message types are being sent, some of them will result to unsupported.
User
A class that represents user.

Enums

MessageType
All possible message types.
Role
All possible roles user can have.
RoomType
All possible room types
Status
All possible statuses message can have.

Extensions

MessageTypeToShortString on MessageType
Extension with one toShortString method
RoleToShortString on Role
Extension with one toShortString method
RoomTypeToShortString on RoomType
Extension with one toShortString method
StatusToShortString on Status
Extension with one toShortString method

Functions

getRoleFromString(String? stringRole) Role?
Converts stringRole to the Role enum.
getRoomTypeFromString(String stringRoomType) RoomType
Converts stringRoomType to the RoomType enum.
getStatusFromString(String? stringStatus) Status?
Converts stringStatus to the Status enum.