User constructor
User({})
Creates a new User instance.
Parameters
id: The unique user identifier (required)email: The user's email address (optional)name: The user's display name (optional)avatar: URL to the user's avatar image (optional)tags: List of tags for role-based access control (optional)createdAt: The user creation timestamp (required)
Implementation
User({
required this.id,
this.email,
this.name,
this.avatar,
this.tags,
required this.createdAt,
});