whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? aria2(
    1. String gid,
    2. MyEvent event
    )?,
  2. TResult? webSocketConnected()?,
  3. TResult? websocketClosed()?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(String gid, MyEvent event)? aria2,
  TResult? Function()? webSocketConnected,
  TResult? Function()? websocketClosed,
}) =>
    throw _privateConstructorUsedError;