ChatAuthor constructor

const ChatAuthor({
  1. required String id,
  2. required String name,
  3. ImageProvider<Object>? avatar,
})

Creates a new ChatAuthor with the specified id, name, and optional avatar.

Implementation

const ChatAuthor({
  required this.id,
  required this.name,
  this.avatar,
});