User class

Mixed-in types

Constructors

User({String email = '', String userID = '', String profilePictureURL = '', String firstName = '', String? phoneNumber = '', String lastName = '', bool active = false, dynamic lastOnlineTimestamp, dynamic settings, String fcmToken = '', List photos = const []})
User.fromJson(Map<String, dynamic> parsedJson)
factory
User.fromPayload(Map<String, dynamic> parsedJson)
factory

Properties

active ↔ bool
getter/setter pair
appIdentifier ↔ String
getter/setter pair
email ↔ String
getter/setter pair
fcmToken ↔ String
getter/setter pair
firstName ↔ String
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
lastName ↔ String
getter/setter pair
lastOnlineTimestamp ↔ DateTime
getter/setter pair
phoneNumber ↔ String?
getter/setter pair
photos ↔ List
getter/setter pair
profilePictureURL ↔ String
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected ↔ bool
getter/setter pair
settings ↔ UserSettings
getter/setter pair
userID ↔ String
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
inherited
fullName() → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toJson() → Map<String, dynamic>
toPayload() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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