Trait enum
Traits a card can have.
values is always in alphabetical order (using EnumName.name).
NOTE: As a result, the index of values in the enum are unstable and
may change between package versions without a breaking change version bump.
To persist, store name
instead and use parse or tryParse to retrieve
the enum value.
Constructors
- Trait()
-
const
- Trait.parse(String name)
-
Given a
name
, returns the corresponding Trait value.factory
Values
- armor → const Trait
-
Armor.
- droid → const Trait
-
Droid.
- fighter → const Trait
-
Fighter.
- force → const Trait
-
Force.
- fringe → const Trait
-
Fringe.
- gambit → const Trait
-
Gambit.
- imperial → const Trait
-
Imperial.
- innate → const Trait
-
Innate.
- item → const Trait
-
Item.
- jedi → const Trait
-
Jedi.
- learned → const Trait
-
Learned.
- lightsaber → const Trait
-
Lightsaber.
- official → const Trait
-
Official.
- rebel → const Trait
-
Rebel.
- speeder → const Trait
-
Speeder.
- sith → const Trait
-
Sith.
- supply → const Trait
-
Supply.
- tactic → const Trait
-
Tactics.
- trick → const Trait
-
Trick.
- trooper → const Trait
-
Trooper.
- underworld → const Trait
-
Underworld.
- vehicle → const Trait
-
Vehicle.
- walker → const Trait
-
Walker.
- weapon → const Trait
-
Weapon.
- wookiee → const Trait
-
Wookiee.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDebugString(
) → String - Returns a string representation of this object, suitable for debugging.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited