GameMessage class Null safety

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>
@JsonKey(ignore: true), read-only
from String
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
message String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
to String?
read-only
type String
The game type this event is handled by
read-only, inherited

Methods

map<TResult extends Object?>({required TResult undo(GenericEventUndo value), required TResult readyNextRound(_GenericReadyNextRoundEvent value), required TResult message(GameMessage value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult undo(GenericEventUndo value)?, TResult readyNextRound(_GenericReadyNextRoundEvent value)?, TResult message(GameMessage value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult undo(GenericEventUndo value)?, TResult readyNextRound(_GenericReadyNextRoundEvent value)?, TResult message(GameMessage value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult undo()?, TResult readyNextRound(String player)?, TResult message(String message, String from, String? to)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult undo()?, TResult readyNextRound(String player)?, TResult message(String message, String from, String? to)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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