STWWorker class

STW Worker object



STWWorker(Client client, {required String id, required FortniteProfile profileId, required String templateId, required Map<String, dynamic> attributes, required int quantity})
STW Worker


attributes Map<String, dynamic>
attributes of the item
getter/setter pairinherited
buildingSlotId String?
building slot id
no setter
client Client
main client
getter/setter pairinherited
gender String
get gender
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
unique id of the item
getter/setter pairinherited
isFavourite bool
is the item favourite
no setterinherited
isLeader bool
is the worker a leader
no setter
leadBonus num
the workers lead bonus. will return 0 if worker is not a leader.
no setter
level int
get level
no setter
managerSynergy String?
get synergy of manager. it is null if worker is not a manager
no setter
personality String
personality of worker
no setter
portrait String
portrait of the worker
no setter
profileId FortniteProfile
profile id of the item
getter/setter pairinherited
quantity int
quantity of the item
getter/setter pairinherited
rarity String
get rarity
no setter
rarityEnum String
get rarity enum
no setter
rating num
get power level of the worker.
no setter
rawType String
get raw type of survivor
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setBonus String
set bonus of worker
no setter
squad Map<String, dynamic>?
squad data of worker
no setter
templateId String
template if of the item
getter/setter pairinherited
tier int
get tier
no setter
type String
get type of survivor
no setter


bonus(STWWorker leaderWorker) num
get the workers bonus. depends on the leaders rarity and personality. returns 0 if worker is a leader.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


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