PlayVsBotDialog class

Solo-game picker (the "New Solo Game" FAB): choose an opponent for each bot seat and start a solo game (you + bots) immediately, with no waiting room.

Fully generic: nothing branches on the game's identity. The opponent-seat count is playersForConfig(config) - 1: the game's own buildCreationConfig carries the player count for variable-count games, and a generic count selector appears only when the game exposes a true range (min < max).

Every seat defaults to the first available bot; the user overrides only the seats they care about. Timing selects where the game is played: an untimed game runs on the device against bots this build ships brains for, needs no network at all, and is carried to the server afterwards; a timed game is created on the server and its bots are dispatched there, which is why it needs a deadline (dispatch is single-attempt, so the clock is the only thing that resolves a bot which never moves). The server enforces the same partition; switching timing re-derives the usable list, and any seat whose bot is no longer usable falls back to the default, so no invalid combination can be submitted.

Inheritance

Constructors

PlayVsBotDialog({Key? key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → ConsumerStatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → ConsumerState<PlayVsBotDialog>
Creates the mutable state for this widget at a given location in the tree.
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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