DestinyDamageTypeDefinition class
All damage types that are possible in the game are defined here, along with localized info and icons as needed.
- Annotations
-
- @JsonSerializable()
Constructors
- DestinyDamageTypeDefinition()
-
DestinyDamageTypeDefinition.fromJson(Map<
String, dynamic> json) -
factory
Properties
- color ↔ DestinyColor?
-
A color associated with the damage type. The displayProperties icon is tinted with a color close to this.
getter/setter pair
- displayProperties ↔ DestinyDisplayPropertiesDefinition?
-
The description of the damage type, icon etc...
getter/setter pair
- enumValue ↔ DamageType?
-
We have an enumeration for damage types for quick reference. This is the current definition's damage type enum value.
getter/setter pair
- hash ↔ int?
-
The unique identifier for this entity. Guaranteed to be unique for the type of entity, but not globally.
When entities refer to each other in Destiny content, it is this hash that they are referring to.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int?
-
The index of the entity as it was found in the investment tables.
getter/setter pair
- redacted ↔ bool?
-
If this is true, then there is an entity with this identifier/type combination, but BNet is not yet allowed to show it. Sorry!
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showIcon ↔ bool?
-
If TRUE, the game shows this damage type's icon. Otherwise, it doesn't. Whether you show it or not is up to you.
getter/setter pair
- transparentIconPath ↔ String?
-
A variant of the icon that is transparent and colorless.
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<DestinyDamageTypeDefinition>