ItemState class

A flags enumeration/bitmask where each bit represents a different possible state that the item can be in that may effect how the item is displayed to the user and what actions can be performed against it.

Constructors

ItemState(int _value)
const
ItemState.fromJson(int numValue)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
no setter

Methods

contains(ItemState childValue) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() int
toString() String
A string representation of this object.
inherited

Operators

operator &(ItemState item) int
operator ==(dynamic other) bool
The equality operator.
override

Constants

Crafted → const ItemState
Crafted = 8 If this bit is set, the item has been 'crafted' by the player. You may want to represent this visually with a "crafted" icon overlay.
HighlightedObjective → const ItemState
HighlightedObjective = 16 If this bit is set, the item has a 'highlighted' objective. You may want to represent this with an orange-red icon border color.
Locked → const ItemState
Locked = 1 If this bit is set, the item has been "locked" by the user and cannot be deleted. You may want to represent this visually with a "lock" icon.
Masterwork → const ItemState
Masterwork = 4 If this bit is set, the item has a Masterwork plug inserted. This usually coincides with having a special "glowing" effect applied to the item's icon.
None → const ItemState
None = 0
Tracked → const ItemState
Tracked = 2 If this bit is set, the item is a quest that's being tracked by the user. You may want a visual indicator to show that this is a tracked quest.