maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. String matchId,
    2. bool authoritative,
    3. String label,
    4. int size,
    5. int? tickRate,
    6. String? handlerName,
    )?, {
  2. TResult realtime(
    1. String matchId,
    2. bool authoritative,
    3. String label,
    4. int size,
    5. int? tickRate,
    6. String? handlerName,
    7. List<UserPresence> presences,
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  TResult Function(String matchId, bool authoritative, String label, int size,
          int? tickRate, String? handlerName)?
      $default, {
  TResult Function(String matchId, bool authoritative, String label, int size,
          int? tickRate, String? handlerName, List<UserPresence> presences)?
      realtime,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;