GenericEvent class

A GenericEvent that is handled by the Generic server implementation rather than handling it differently in each game implementation

Inheritance
Available Extensions
Annotations
  • @freezed

Constructors

GenericEvent.fromJson(Map<String, dynamic> map)
factory
GenericEvent.readyNextRound(String player, {@Default('generic') String type})
Signals that player is ready for the next round
const
factory

Properties

copyWith → $GenericEventCopyWith<GenericEvent>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
player String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setterinherited

Methods

map<TResult extends Object?>({required TResult readyNextRound(_GenericReadyNextRoundEvent value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? readyNextRound(_GenericReadyNextRoundEvent value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult readyNextRound(_GenericReadyNextRoundEvent value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult readyNextRound(String player, String type)?, 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 readyNextRound(String player, String type)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? readyNextRound(String player, String type)?}) → TResult?
inherited

Operators

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

Static Methods

register() → void