Outcome class

The outcome of a Position. No winner means a draw.

Annotations
  • @immutable

Constructors

Outcome({Side? winner})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
winner Side?
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromPgn(String? outcome) Outcome?
Create Outcome from string
toPgnString(Outcome? outcome) String
Create PGN String out of Outcome

Constants

blackWins → const Outcome
draw → const Outcome
whiteWins → const Outcome