Message constructor

Message({
  1. String? id,
  2. int? time,
  3. String? message,
  4. MessageType? type,
  5. MessageContentType? contentType = MessageContentType.text,
  6. String? sender,
  7. Uint8List? imageData,
})

Implementation

Message(
    {this.id,
    this.time,
    this.message,
    this.type,
    this.contentType = MessageContentType.text,
    this.sender,
    this.imageData});