GameError<G extends Game<Event>> class Null safety

Inheritance

Constructors

GameError(String message, String person)
const
factory
GameError.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $GameErrorCopyWith<G, GameError<G>>
@JsonKey(ignore: true), read-only
error GameError<Game<Event>>?
Returns the error or null
read-only, inherited
errorString String
Returns the error message or 'No Error'
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isError bool
Returns whether this instance is an error
read-only, inherited
isGame bool
Returns whether this instance is a game
read-only, inherited
message String
read-only
person String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value → G?
Returns the game value or null
read-only, inherited

Methods

map<TResult extends Object?>({required TResult game(GameValue<Game<Event>> value), required TResult error(GameError<Game<Event>> value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult game(GameValue<Game<Event>> value)?, TResult error(GameError<Game<Event>> value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult game(GameValue<Game<Event>> value)?, TResult error(GameError<Game<Event>> value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult game(Game<Event> game)?, TResult error(String message, String person)?, 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 game(Game<Event> game), required TResult error(String message, String person)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult game(Game<Event> game)?, TResult error(String message, String person)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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