rarity property Null safety
get rarity
Implementation
String get rarity =>
stwRarities[
schematicRarityRegex.firstMatch(templateId.split(":")[1])?.group(1) ??
"c"] ??
"common";
get rarity
String get rarity =>
stwRarities[
schematicRarityRegex.firstMatch(templateId.split(":")[1])?.group(1) ??
"c"] ??
"common";