Aspect enum

A different philosophy or motivation 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.

Inheritance

Constructors

Aspect()
const
Aspect.parse(String name)
Given a name, returns the corresponding Aspect value.
factory

Values

aggression → const Aspect

Aggression.

command → const Aspect

Command.

cunning → const Aspect

Cunning.

heroism → const Aspect

Heroism.

vigilance → const Aspect

Vigilance.

villainy → const Aspect

Villainy.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

tryParse(String name) Aspect?
Given a name, returns the corresponding Aspect value.

Constants

values → const List<Aspect>
A constant List of the values in this enum, in order of their declaration.