CurrentUserManager class
Constructors
- CurrentUserManager(User user)
Properties
- currentUser → User
-
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
-
blockUser(
{required String userId}) → Future< void> - Blocks the user
-
createThemeConfig(
{required String id, required Themes themes, required UserColors userColors, required bool dark}) → Future< ThemeConfigData> - Creates new theme config
-
getBlockedUsers(
) → Future< List< BlockedUser> > -
Returns List of all
BlockedUser -
getThemeConfigOfCurrentUser(
) → Future< ThemeConfigData> -
Returns
ThemeConfigDataof current user -
getUserInfo(
) → Future< Profile> -
Returns
Profileinfo -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
dynamic userFunc(Spect8Event)) → void - Subscribe channel to get channel events and actions
-
toString(
) → String -
A string representation of this object.
inherited
-
unBlockUser(
{required String userId}) → Future< void> - Unblocks the user
-
updateUserInfo(
{Avatar? avatar, String? displayName, String? color, int? colorIndex, Avatar? badge}) → Future< User> - User can update his info
-
updateUserLanguage(
{required String language}) → Future< User> - Changes user language
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited