User constructor

User({
  1. int? ID,
  2. required String userName,
  3. String? hashedPassword,
})

Constructs a User instance.

The userName is required, while the ID and hashedPassword are optional. If the ID is not provided, it defaults to 0.

Implementation

User({
  int? ID,
  required this.userName,
  this.hashedPassword,
}) {
  this.ID = ID ?? 0;
}