UserSetting class

Constructors

UserSetting({required String key, required DatabaseReference ref, required bool? profileViewNotification, required String? languageCode})
UserSetting.fromJson(Map json, String key)
Return a new UserSetting with the given data
factory
UserSetting.fromSnapshot(DataSnapshot snapshot)
Return a new UserSetting with the given data
factory
UserSetting.fromUid(String uid)
Return a new UserSetting with the given uid.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Member variables
final
languageCode String?
final
profileViewNotification bool?
final
ref → DatabaseReference
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
update({bool? profileViewNotification, String? languageCode}) → dynamic

Operators

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

Static Properties

nodeRef → DatabaseReference
no setter
rootRef → DatabaseReference
no setter

Static Methods

get(String uid) Future<UserSetting>
Returns the login user's UserSetting with the database data.
getField<T>(String uid, String field) Future<T?>
Get the value of the field

Constants

node → const String