ElyUser class
Ely.by user account information
Contains user profile data retrieved from the Ely.by API after successful OAuth2 authentication.
Example:
final user = await ElyAuth.getUserInfo(token);
print('Welcome, ${user.username}!');
print('Email: ${user.email}');
print('Profile: ${user.profileLink}');
Constructors
-
ElyUser.new({required String id, required String username, required String email, String? lang, String? profileLink, String? preferredLanguage, Map<
String, dynamic> ? properties}) - Creates an Ely.by user object with the specified information
-
ElyUser.fromJson(Map<
String, dynamic> json) -
Creates an Ely.by user from JSON API response
factory
Properties
- email → String
-
User's email address
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique user identifier on Ely.by
final
- lang → String?
-
User's preferred language code (optional)
final
- preferredLanguage → String?
-
User's preferred language for interface (optional)
final
- profileLink → String?
-
URL to user's Ely.by profile page (optional)
final
-
properties
→ Map<
String, dynamic> ? -
Additional user properties and metadata (optional)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username → String
-
User's display name (username)
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