UserModel class

Represents a user model with various attributes.

Constructors

UserModel({String? uid, String? name, String? email, String? password, int? highestScore, int? highestScoreClassic})
Constructor for creating a UserModel instance.
UserModel.fromMap(dynamic map)
Factory constructor for creating a UserModel instance from a map.
factory

Properties

email String?
The email address of the user.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
highestScore int?
The highest score of the user in a general game context.
read / write
highestScoreClassic int?
The highest score of the user in a classic game context.
read / write
name String?
The name of the user.
read / write
password String?
The password of the user.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
uid String?
The unique identifier for the user.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the UserModel object to a map for sending data to the server.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited