UserNode class

Grant access to methods relating user.

@param storageController
Inheritance

Constructors

UserNode(StorageController _storageController)

Properties

getRecommendations Future<List<Recommendation>>
from return list of recommendations from localStorage
no setterinherited
getUserInfo Future<User>
get current user info from :local value 'currentUser' @return user object @throws :Local not found on StorageException
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getGeigerScoreAggregateThreatScore({String language = "en"}) Future<GeigerScoreThreats>
@param optional language as string @return list of threatScore object from GeigerScoreAggregate
getGeigerScoreUserThreatScores({String language = "en"}) Future<GeigerScoreThreats>
// @param optional language as string // @return GeigerScore as String from GeigerScoreUser Node // @throw Node not found on StorageException @param optional language as string @return list of threatScore object from GeigerScoreUser
getThreatRecommendation({String language = "en", required String recommendationType}) Future<List<Recommendation>>
get list of threat recommendation
inherited
getUserRecommendation({String language = "en"}) Future<List<Recommendation>>
get UserRecommendation from :user path
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setGeigerScoreAggregate({Locale? language, required GeigerScoreThreats geigerScoreThreats}) Future<void>
set GeigerAggregateScore
setGeigerUserScore({Locale? language, required GeigerScoreThreats geigerScoreThreats, String geigerScore = "0"}) Future<void>
set GeigerUserScore.
setGlobalRecommendationsNode({Locale? language, required List<Recommendation> recommendations}) Future<void>
set all recommendations in Global:recommendations node.
inherited
setUserImplementedRecommendation({required Recommendation recommendation}) Future<bool>
set user ImplementedRecommendation @param recommendation as Recommendation @return bool
setUserInfo(User currentUserInfo) Future<void>
set userInfo in currentUser NodeValue in :Local
setUserThreatRecommendation({Locale? language}) Future<void>
get UserRecommendation from recommendation node and set in :users node
toString() String
A string representation of this object.
inherited

Operators

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