InsanichessOtbSettings class Null safety
Model for OTB settings.
- Inheritance
-
- Object
- InsanichessGameSettings
- InsanichessOtbSettings
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 fromjson
.
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.
read-onlyinherited
- 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.
read-onlyinherited
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 non-existent 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