User constructor

const User({
  1. required int id,
  2. String? username,
  3. String? image,
  4. String? tier,
  5. String? status,
  6. bool? isModerator,
  7. DateTime? createdAt,
  8. String? displayName,
  9. UserFilePreferences? filePreferences,
  10. bool? banned,
})

Creates a new user instance.

Implementation

const User({
  required this.id,
  this.username,
  this.image,
  this.tier,
  this.status,
  this.isModerator,
  this.createdAt,
  this.displayName,
  this.filePreferences,
  this.banned,
});