STWWorker class Null safety
STW Worker object
- Inheritance
-
- Object
- ProfileItem
- STWWorker
Constructors
Properties
-
attributes
↔ Map<
String, dynamic> -
attributes of the item
read / writeinherited
- buildingSlotId → String?
-
building slot id
read-only
- client ↔ Client
-
main client
read / writeinherited
- gender → String
-
get gender
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ String
-
unique id of the item
read / writeinherited
- isFavourite → bool
-
is the item favourite
read-onlyinherited
- isLeader → bool
-
is the worker a leader
read-only
- leadBonus → num
-
the workers lead bonus.
will return 0 if worker is not a leader.
read-only
- level → int
-
get level
read-only
- managerSynergy → String?
-
get synergy of manager.
it is null if worker is not a manager
read-only
- personality → String
-
personality of worker
read-only
- portrait → String
-
portrait of the worker
read-only
- profileId ↔ FortniteProfile
-
profile id of the item
read / writeinherited
- quantity ↔ int
-
quantity of the item
read / writeinherited
- rarity → String
-
get rarity
read-only
- rarityEnum → String
-
get rarity enum
read-only
- rating → num
-
get power level of the worker.
read-only
- rawType → String
-
get raw type of survivor
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- setBonus → String
-
set bonus of worker
read-only
-
squad
→ Map<
String, dynamic> ? -
squad data of worker
read-only
- templateId ↔ String
-
template if of the item
read / writeinherited
- tier → int
-
get tier
read-only
- type → String
-
get type of survivor
read-only
Methods
-
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 non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited