DestinySocketTypeDefinition class

All Sockets have a "Type": a set of common properties that determine when the socket allows Plugs to be inserted, what Categories of Plugs can be inserted, and whether the socket is even visible at all given the current game/character/account state. See DestinyInventoryItemDefinition for more information about Socketed items and Plugs.

Annotations
  • @JsonSerializable()

Properties

alwaysRandomizeSockets bool?
getter/setter pair
avoidDuplicatesOnInitialization bool?
getter/setter pair
currencyScalars List<DestinySocketTypeScalarMaterialRequirementEntry>?
getter/setter pair
displayProperties DestinyDisplayPropertiesDefinition?
There are fields for this display data, but they appear to be unpopulated as of now. I am not sure where in the UI these would show if they even were populated, but I will continue to return this data in case it becomes useful.
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
hideDuplicateReusablePlugs bool?
getter/setter pair
index int?
The index of the entity as it was found in the investment tables.
getter/setter pair
insertAction DestinyInsertPlugActionDefinition?
Defines what happens when a plug is inserted into sockets of this type.
getter/setter pair
isPreviewEnabled bool?
getter/setter pair
overridesUiAppearance bool?
This property indicates if the socket type determines whether Emblem icons and nameplates should be overridden by the inserted plug item's icon and nameplate.
getter/setter pair
plugWhitelist List<DestinyPlugWhitelistEntryDefinition>?
A list of Plug "Categories" that are allowed to be plugged into sockets of this type. These should be compared against a given plug item's DestinyInventoryItemDefinition.plug.plugCategoryHash, which indicates the plug item's category. If the plug's category matches any whitelisted plug, or if the whitelist is empty, it is allowed to be inserted.
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
socketCategoryHash int?
getter/setter pair
visibility DestinySocketVisibility?
Sometimes a socket isn't visible. These are some of the conditions under which sockets of this type are not visible. Unfortunately, the truth of visibility is much, much more complex. Best to rely on the live data for whether the socket is visible and enabled.
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<DestinySocketTypeDefinition>