type property

String type

get type of schematic (weapon or trap).

Implementation

String get type =>
    oreOrCrystalRegex.firstMatch(templateId.split(":")[1])?.group(1) == null
        ? "trap"
        : "weapon";