LifecycleType enum

The trigger of a lifecycle action: the twin of the TypeScript LifecycleType.

A local game never times out (it is untimed), but the enum keeps the vocabulary complete so a unit's applyLifecycle reads identically to its TypeScript twin and an imported transcript replays through the same hook.

Inheritance
  • Object
  • Enum
  • LifecycleType

Values

timeout → const LifecycleType
const LifecycleType('timeout')
forfeit → const LifecycleType
const LifecycleType('forfeit')
autoForfeit → const LifecycleType
const LifecycleType('autoForfeit')

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
wire → String
The value the TypeScript side writes to the action log.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromWire(String value) LifecycleType
Parses a wire value, rejecting anything this build does not know.

Constants

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