User constructor

const User({
  1. required String id,
  2. required String name,
  3. required String email,
  4. @Default(false) bool emailVerified,
  5. String? image,
  6. @Default(null) DateTime? createdAt,
  7. @Default(null) DateTime? updatedAt,
  8. @Default(false) bool twoFactorEnabled,
  9. String? username,
  10. String? displayUsername,
  11. @Default(false) bool isAnonymous,
  12. String? phoneNumber,
  13. @Default(false) bool phoneNumberVerified,
  14. String? role,
  15. @Default(false) bool banned,
  16. String? banReason,
  17. DateTime? banExpires,
})

Implementation

const factory User({
  required String id,
  required String name,
  required String email,
  @Default(false) bool emailVerified,
  String? image,
  @Default(null) DateTime? createdAt,
  @Default(null) DateTime? updatedAt,
  @Default(false) bool twoFactorEnabled,
  String? username,
  String? displayUsername,
  @Default(false) bool isAnonymous,
  String? phoneNumber,
  @Default(false) bool phoneNumberVerified,
  String? role,
  @Default(false) bool banned,
  String? banReason,
  DateTime? banExpires,
}) = _User;