InsanichessLiveGameSettings class Null safety
Model for live game settings.
- Inheritance
-
- Object
- InsanichessGameSettings
- InsanichessLiveGameSettings
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 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
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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 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