InsanichessLiveGameSettings class

Model for live game settings.

Inheritance

Constructors

InsanichessLiveGameSettings({required bool allowUndo, required bool alwaysPromoteToQueen, required AutoZoomOutOnMoveBehaviour autoZoomOutOnMove})
Creates new InsanichessLiveGameSettings object.
const
InsanichessLiveGameSettings.defaults()
Creates new InsanichessLiveGameSettings object with default values.
const
InsanichessLiveGameSettings.fromJson(Map<String, dynamic> json)
Creates new InsanichessLiveGameSettings 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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? allowUndo, bool? alwaysPromoteToQueen, AutoZoomOutOnMoveBehaviour? autoZoomOutOnMove}) InsanichessLiveGameSettings
Returns a new InsanichessLiveGameSettings 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