InsanichessGameSettings class

Model for game settings.

Implementers

Constructors

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

Properties

allowUndo bool
Is undoing / takeback allowed?
final
alwaysPromoteToQueen bool
Should pawns automatically be promoted to queen?
final
autoZoomOutOnMove AutoZoomOutOnMoveBehaviour
Should the board be zoomed out automatically on move, and if yes, how.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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