INNER CODE UNIT · Dart
ChatMessage
fayeed/dash_chat · lib/src/models/chat_message.dart:5
class ChatMessage {
/// Id of the message if no id is supplied a new id is assigned
/// using a [UUID v4] this behaviour could be overriden by provind
/// and [optional] paramter called [messageIdGenerator].
/// [messageIdGenerator] take a function with this
/// signature [String Function()]
String? id;
/// Actual text message.
String? text;
/// It's a [non-optional] pararmter which specifies the time the
/// message was delivered takes a [DateTime] object.
late DateTime createdAt;
/// Takes a [ChatUser] object which is used to distinguish between
/// users and also provide avaatar URLs and name.
late ChatUser user;