ChatUser constructor

const ChatUser({
  1. required String id,
  2. String? name,
  3. String? firstName,
  4. String? avatar,
  5. Map<String, dynamic>? customProperties,
  6. String? role,
})

Implementation

const ChatUser({
  required this.id,
  String? name,
  String? firstName,
  this.avatar,
  this.customProperties,
  this.role,
}) : name = name ?? firstName ?? id;