UndoRespondedGameEvent class Null safety
Event that a user accepted / declined an undo request. The event does not contain data of who issued the request, because this is an internal event and is processed only on server side. It only contains whether the response is confirming the request or not.
This event is broadcasted only if it is accepting the undo request, because subscribers of the broadcast stream need to know that move has been undone.
- Inheritance
-
- Object
- InsanichessGameEvent
- UndoRespondedGameEvent
Constructors
- UndoRespondedGameEvent({required bool accept})
-
Creates new
UndoRespondedGameEvent
object.const
Properties
- accept → bool
-
Whether the opponent accepted the undo request or not.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- isBroadcasted → bool
-
Whether this event should be broadcasted or not. Events that are not
broadcasted are only sent to opponent's socket.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- type → GameEventType
-
The type of this event. This is used to efficiently parse the game event
data from received json.
finalinherited
Methods
-
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