whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;