UserData class

A user in the Stream Feeds system.

The primary actor who creates activities, reacts to content, and participates in feeds. Contains profile data, authentication status, social relationships, and moderation controls.

Annotations
  • @freezed

Constructors

UserData({required bool banned, List<String> blockedUserIds = const [], required DateTime createdAt, DateTime? deactivatedAt, DateTime? deletedAt, required String id, String? image, String? language, DateTime? lastActive, String? name, required bool online, DateTime? revokeTokensIssuedBefore, required String role, List<String> teams = const [], required DateTime updatedAt, Map<String, Object?> custom = const {}})
Creates a new UserData instance.
const

Properties

banned bool
Whether the user is banned.
final
blockedUserIds List<String>
A list of user IDs that are blocked by this user.
final
copyWith → $UserDataCopyWith<UserData>
Create a copy of UserData with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
The date and time when the user was created.
final
custom Map<String, Object?>
A map of custom attributes associated with the user.
final
deactivatedAt DateTime?
The date and time when the user was deactivated, if applicable.
final
deletedAt DateTime?
The date and time when the user was deleted, if applicable.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for the user.
final
image String?
The URL of the user's profile image, if available.
final
language String?
The preferred language of the user, if specified.
final
lastActive DateTime?
The date and time when the user was last active, if available.
final
name String?
The name of the user, if available.
final
online bool
Whether the user is currently online.
final
revokeTokensIssuedBefore DateTime?
The date and time before which tokens should be revoked, if applicable.
final
role String
The role of the user in the system.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teams List<String>
A list of team IDs that the user is associated with.
final
updatedAt DateTime
The date and time when the user data was last updated.
final

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