PgnCommentShape class

A PGN comment shape.

Example of a comment shape "%cal Ra1b2" with color: Red from:a1 to:b2.

Annotations
  • @immutable

Constructors

PgnCommentShape({required CommentShapeColor color, required Square from, required Square to})
const

Properties

color CommentShapeColor
final
from Square
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to Square
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 str) PgnCommentShape?
Parse the PGN for any comment or return null.