GameMessage class abstract

Inheritance
Available Extensions

Constructors

GameMessage(String message, {required String from, required String? to})
const
factory
GameMessage.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $GameMessageCopyWith<GameMessage>
no setter
from String
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to String?
no setter
type String
The game type this event is handled by
no setterinherited

Methods

map<TResult extends Object?>({required TResult undo(GenericEventUndo value), required TResult readyNextRound(_GenericReadyNextRoundEvent value), required TResult message(GameMessage value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult undo(GenericEventUndo value)?, TResult readyNextRound(_GenericReadyNextRoundEvent value)?, TResult message(GameMessage value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult undo(GenericEventUndo value)?, TResult readyNextRound(_GenericReadyNextRoundEvent value)?, TResult message(GameMessage value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult undo()?, TResult readyNextRound(String player)?, TResult message(String message, String from, String? to)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult undo(), required TResult readyNextRound(String player), required TResult message(String message, String from, String? to)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult undo()?, TResult readyNextRound(String player)?, TResult message(String message, String from, String? to)?}) → TResult?
inherited

Operators

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