heroLoadouts property
Iterable<STWHeroLoadout>
heroLoadouts
get hero loadouts of the profile
Implementation
Iterable<STWHeroLoadout> get heroLoadouts {
var loadouts = <STWHeroLoadout>[];
for (var i in items) {
if (i.templateId.startsWith("CampaignHeroLoadout")) {
loadouts.add(
STWHeroLoadout(
client,
id: i.id,
profileId: profileId,
templateId: i.templateId,
attributes: i.attributes,
quantity: i.quantity,
),
);
}
}
return loadouts;
}