ChatUser constructor

ChatUser({
  1. String? uid,
  2. String? name,
  3. String? avatar,
  4. Color? containerColor,
  5. Color? color,
  6. Map<String, dynamic>? customProperties,
  7. String? firstName,
  8. String? lastName,
})

Implementation

ChatUser({
  String? uid,
  String? name,
  this.avatar,
  this.containerColor,
  this.color,
  this.customProperties,
  this.firstName,
  this.lastName,
}) {
  this.name = name == null ? "$firstName $lastName" : name;
  this.uid = uid != null ? uid : Uuid().v4().toString();
}