Match class

Implementers
Annotations
  • @freezed

Constructors

Match({required String matchId, required bool authoritative, required String label, required int size, int? tickRate, String? handlerName})
const
factory
Match.fromDto(Match dto)
factory
Match.fromJson(Map<String, Object?> json)
factory
Match.fromRtpb(Match dto)
factory
Match.realtime({required String matchId, required bool authoritative, required String label, required int size, int? tickRate, String? handlerName, required List<UserPresence> presences})
factory

Properties

authoritative bool
no setterinherited
copyWith → $MatchCopyWith<Match>
no setterinherited
handlerName String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
label String
no setterinherited
matchId String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setterinherited
tickRate int?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_Match value), {required TResult realtime(RealtimeMatch value)}) → TResult
inherited
mapOrNull<TResult extends Object?>(TResult? $default(_Match value)?, {TResult? realtime(RealtimeMatch value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>(TResult $default(_Match value)?, {TResult realtime(RealtimeMatch value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>(TResult $default(String matchId, bool authoritative, String label, int size, int? tickRate, String? handlerName)?, {TResult realtime(String matchId, bool authoritative, String label, int size, int? tickRate, String? handlerName, List<UserPresence> presences)?, 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?>(TResult $default(String matchId, bool authoritative, String label, int size, int? tickRate, String? handlerName), {required TResult realtime(String matchId, bool authoritative, String label, int size, int? tickRate, String? handlerName, List<UserPresence> presences)}) → TResult
inherited
whenOrNull<TResult extends Object?>(TResult? $default(String matchId, bool authoritative, String label, int size, int? tickRate, String? handlerName)?, {TResult? realtime(String matchId, bool authoritative, String label, int size, int? tickRate, String? handlerName, List<UserPresence> presences)?}) → TResult?
inherited

Operators

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