Match class
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
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