TrackingProperty class
This class represents the user's tracking property.
This class contains basic information about the user registered with Duolingo, as well as information such as whether and how many items the user currently owns.
Constructors
-
TrackingProperty.from({required String userId, required String username, required String learningLanguage, required String learningReason, required String uiLanguage, required int level, required int followers, required int following, required int lingots, required int gems, required int goalXp, required int streak, required bool hasFullname, required bool hasItemStreakFreeze, required bool hasItemStreakRepair, required bool hasItemStreakWager, required bool hasItemWeekendAmulet, required bool hasItemRupeeWager, required bool hasItemPremiumSubscription, required bool hasItemLiveSubscription, required bool hasItemImmersiveSubscription, required bool hasPicture, required bool hasPhoneNumber, required bool isAgeRestricted, required bool isTrialAccount, required int numberStreakFreeze, required int numberUnlockedSection, required int numberCompletedSession, required int numberUnlockedSkill, required int numberClassroom, required int numberObservee, required List<
String> achievements}) - Returns the new instance of TrackingProperty based on arguments.
Properties
-
achievements
→ List<
String> -
The achivements
final
- followers → int
-
The count of follower
final
- following → int
-
The count of following
final
- gems → int
-
The gems
final
- goalXp → int
-
The goal xp
final
- hasFullname → bool
-
The flag that represents user has fullname or not
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasItemImmersiveSubscription → bool
-
The flag that represents user has immersive subscription or not
final
- hasItemLiveSubscription → bool
-
The flag that represents user has live subscription or not
final
- hasItemPremiumSubscription → bool
-
The flag that represents user has premium subscription or not
final
- hasItemRupeeWager → bool
-
The flag that represents user has rupee wager or not
final
- hasItemStreakFreeze → bool
-
The flag that represents user has streak freeze or not
final
- hasItemStreakRepair → bool
-
The flag that represents user has streak repair or not
final
- hasItemStreakWager → bool
-
The flag that represents user has streak wager or not
final
- hasItemWeekendAmulet → bool
-
The flag that represents user has weekend amulet or not
final
- hasPhoneNumber → bool
-
The flag that represents user has a phone number or not
final
- hasPicture → bool
-
The flag that represents user has a picture or not
final
- isAgeRestricted → bool
-
The flag that represents user is age restricted or not
final
- isTrialAccount → bool
-
The flag that represents user is trial account or not
final
- learningLanguage → String
-
The learning language
final
- learningReason → String
-
The learning reason
final
- level → int
-
The level
final
- lingots → int
-
The lingots
final
- numberClassroom → int
-
The number of classroom
final
- numberCompletedSession → int
-
The number of completed session
final
- numberObservee → int
-
The number of observee
final
- numberStreakFreeze → int
-
The number of streak freeze
final
- numberUnlockedSection → int
-
The number of unlocked section
final
- numberUnlockedSkill → int
-
The number of unlocked skill
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streak → int
-
The streak
final
- uiLanguage → String
-
The ui language
final
- userId → String
-
The user id
final
- username → String
-
The user name
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override