InsanichessTimeControl class Null safety
Represents a time control for a game.
Constructors
- InsanichessTimeControl({required Duration initialTime, required Duration incrementPerMove})
-
Creates new InsanichessTimeControl object with initialTime and
incrementPerMove. All values are in seconds.
const
- InsanichessTimeControl.blitz()
-
Creates new InsanichessTimeControl object with default blitz settings.
const
-
InsanichessTimeControl.fromJson(Map<
String, dynamic> json) -
Creates new InsanichessTimeControl object from
json
representation. - InsanichessTimeControl.infinite()
-
Creates new InsanichessTimeControl object representing that game is not
bounded by time.
const
- InsanichessTimeControl.rapid()
-
Creates new InsanichessTimeControl object with default rapid settings.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- incrementPerMove → Duration
-
Increment that a player receives after each move, in seconds.
final
- initialTime → Duration
-
Initial time on the clock, in seconds.
final
- isInfinite → bool
-
Returns
true
if this time control is infinite.read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Converts this object into json representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object? other) → bool -
The equality operator.
override