GameReward class final
One grant from the active, used or expired-grants lists. An unknown
type skips it; a grant with nothing to show is dropped.
Constructors
- GameReward({required String grantId, required GameRewardType type, DateTime? expiresAt, String? name, String? imageUrl, String? offeredBy, String? partnerName, String? bannerImageUrl, String? headline, String? description, String? terms, String? referenceKey, GameRewardValue? value, String? howToUse, String? ctaLabel, String? ctaDeepLink, String? code, double? amount, String? unit, String? displayText})
-
const
Properties
- amount → double?
-
final
-
final
- code → String?
-
final
- ctaDeepLink → String?
-
final
- ctaLabel → String?
-
A missing label renders as "Use now".
final
- description → String?
-
final
- detail → String?
-
The widget's secondary line:
code, elsedisplayText, elseamount unit. Null when none. Port of Android'sparseGrantdetail and iOS'sGameReward.detail.no setter - displayText → String?
-
final
- expiresAt → DateTime?
-
final
- grantId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline → String?
-
final
- howToUse → String?
-
final
- imageUrl → String?
-
final
- name → String?
-
final
- offeredBy → String?
-
final
- partnerName → String?
-
final
- referenceKey → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- terms → String?
-
final
- type → GameRewardType
-
final
- unit → String?
-
final
- value → GameRewardValue?
-
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
Static Methods
-
fromJson(
Map< String, dynamic> raw) → GameReward?