DestinyPerkReference class

The list of perks to display in an item tooltip - and whether or not they have been activated. Perks apply a variety of effects to a character, and are generally either intrinsic to the item or provided in activated talent nodes or sockets.

Annotations
  • @JsonSerializable()

Constructors

DestinyPerkReference()
DestinyPerkReference.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
iconPath String?
The icon for the perk.
getter/setter pair
isActive bool?
Whether this perk is currently active. (We may return perks that you have not actually activated yet: these represent perks that you should show in the item's tooltip, but that the user has not yet activated.)
getter/setter pair
perkHash int?
The hash identifier for the perk, which can be used to look up DestinySandboxPerkDefinition if it exists. Be warned, perks frequently do not have user-viewable information. You should examine whether you actually found a name/description in the perk's definition before you show it to the user.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool?
Some perks provide benefits, but aren't visible in the UI. This value will let you know if this is perk should be shown in your UI.
getter/setter pair

Methods

asyncToJson() Future<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

asyncFromJson(Map<String, dynamic> json) Future<DestinyPerkReference>