ProfileLifeCycle class

Constructors

ProfileLifeCycle({FutureBool didRemarkUpdated(String userID) = DefaultLifeCycle.defaultAsyncBooleanSolution, FriendInfoFunction didGetFriendInfo = DefaultLifeCycle.defaultFriendInfoSolution, FutureBool shouldAddToBlockList(String userID) = DefaultLifeCycle.defaultAsyncBooleanSolution, FutureBool shouldAddFriend(String userID) = DefaultLifeCycle.defaultAsyncBooleanSolution, FutureBool shouldDeleteFriend(String userID) = DefaultLifeCycle.defaultAsyncBooleanSolution})

Properties

didGetFriendInfo FriendInfoFunction
After getting the user info of friend or contact, and before rendering it to the profile page.
getter/setter pair
didRemarkUpdated FutureBool Function(String userID)
The callback after the remark to a friend changed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldAddFriend FutureBool Function(String userID)
Before requesting to add a user as friend or a contact, true means can add continually, while false will not add. You can make a second confirmation here by a modal, etc.
getter/setter pair
shouldAddToBlockList FutureBool Function(String userID)
Before adding a contact to block list, true means can add continually, while false will not add. You can make a second confirmation here by a modal, etc.
getter/setter pair
shouldDeleteFriend FutureBool Function(String userID)
Before deleting a contact or friend, true means can delete continually, while false will not delete. You can make a second confirmation here by a modal, etc.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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