maybeWhen<TResult extends Object?> method

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

Implementation

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