toString method

  1. @override
String toString()
override

Returns a string representation of this User instance.

This method provides a human-readable representation of the user that includes all the user's properties. Useful for debugging and logging.

Returns

A string containing all user properties

Implementation

@override
String toString() {
  return 'User{id: $id, email: $email, name: $name, avatar: $avatar, tags: $tags, createdAt: $createdAt}';
}