AchievementItemData class

Constructors

AchievementItemData({required String id, required String name, required String description, String? lockedImage, String? unlockedImage, required int completedSteps, required int totalSteps, required bool unlocked})
const
AchievementItemData.fromJson(Map<String, dynamic> json)
factory

Properties

completedSteps int
On android the achievement type should be TYPE_INCREMENTAL to get the steps, else it will be 0. On iOS completedSteps is same as percentComplete.
final
description String
On iOS description will be achievedDescription in case chievement completed else it will be unachievedDescription.
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
lockedImage String?
The achievement locked (revealed) image as base64.
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalSteps int
On android the achievement type should be TYPE_INCREMENTAL to get the total steps, else it will be 0. On iOS totalSteps will have always 100.
final
unlocked bool
final
unlockedImage String?
The achievement locked (revealed) image as base64.
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