InsanichessOtbSettings class

Model for OTB settings.

Inheritance

Constructors

InsanichessOtbSettings({required bool rotateChessboard, required bool mirrorTopPieces, required bool allowUndo, required bool alwaysPromoteToQueen, required AutoZoomOutOnMoveBehaviour autoZoomOutOnMove})
Creates new InsanichessOtbSettings object with rotateChessboard and mirrorTopPieces arguments.
const
InsanichessOtbSettings.defaults()
Creates new InsanichessOtbSettings object with default values.
const
InsanichessOtbSettings.fromJson(Map<String, dynamic> json)
Creates new InsanichessOtbSettings object from json.

Properties

allowUndo bool
Is undoing / takeback allowed?
finalinherited
alwaysPromoteToQueen bool
Should pawns automatically be promoted to queen?
finalinherited
autoZoomOutOnMove AutoZoomOutOnMoveBehaviour
Should the board be zoomed out automatically on move, and if yes, how.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
mirrorTopPieces bool
Should pieces on top be mirrored, e.g. if white is on bottom, then black pieces are "on their heads".
final
rotateChessboard bool
Should chessboard rotate to always show the player on turn on bottom?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? rotateChessboard, bool? mirrorTopPieces, bool? allowUndo, bool? alwaysPromoteToQueen, AutoZoomOutOnMoveBehaviour? autoZoomOutOnMove}) InsanichessOtbSettings
Returns a new InsanichessOtbSettings object by overriding existing field values with those given in arguments.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns json representation of this object.
override
toString() String
A string representation of this object.
inherited

Operators

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