User constructor

User({
  1. required int id,
  2. String? email,
  3. String? name,
  4. String? avatar,
  5. List<String>? tags,
  6. required DateTime createdAt,
})

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,
});