InsanichessSettings class Null safety
Model for all settings for the app.
Constructors
- InsanichessSettings({required InsanichessOtbSettings otb, required InsanichessLiveGameSettings live, required bool showZoomOutButtonOnLeft, required bool showLegalMoves})
-
Creates new
InsanichessSettings
object.const - InsanichessSettings.defaults()
-
Creates new
InsanichessSettings
object with default values.const -
InsanichessSettings.fromJson(Map<
String, dynamic> json) -
Creates new
InsanichessSettings
fromjson
representation.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- live → InsanichessLiveGameSettings
-
Live game settings.
final
- otb → InsanichessOtbSettings
-
OTB settings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- showLegalMoves → bool
-
When a piece is selected, should we show legal moves with that piece.
final
- showZoomOutButtonOnLeft → bool
-
Should zoom-out button be on the left side of screen.
final
Methods
-
copyWith(
{InsanichessOtbSettings? otb, InsanichessLiveGameSettings? live, bool? showZoomOutButtonOnLeft, bool? showLegalMoves}) → InsanichessSettings -
Returns a new
InsanichessSettings
object by overriding existing field values with those given in arguments. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Converts this object to json representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited