Chat constructor

const Chat({
  1. required int id,
  2. required ChatType type,
  3. String? title,
  4. String? username,
  5. String? firstName,
  6. String? lastName,
  7. bool? isForum,
})

Constructs a Chat object.

Implementation

const Chat({
  required this.id,
  required this.type,
  this.title,
  this.username,
  this.firstName,
  this.lastName,
  this.isForum,
});