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, otherwise it will be 0. On iOS/macOS completedSteps is the same as percentComplete.
final
description String
On iOS/macOS description will be either achievedDescription or unachievedDescription, depending on whether or not the achievement has been unlocked.
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
lockedImage String?
The achievement's locked (unrevealed) 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, otherwise it will be 0. On iOS/macOS totalSteps will always be 100.
final
unlocked bool
final
unlockedImage String?
The achievement's unlocked (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