when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult aria2(
    1. String source
    ),
  2. required TResult parse(
    1. String value,
    2. String to
    ),
  3. required TResult websocketIo(
    1. String source
    ),
  4. required TResult json(
    1. String source
    ),
  5. required TResult websocketClosed(
    1. String message
    ),
  6. required TResult reconnectTaskTimeout(
    1. String source
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(String source) aria2,
  required TResult Function(String value, String to) parse,
  required TResult Function(String source) websocketIo,
  required TResult Function(String source) json,
  required TResult Function(String message) websocketClosed,
  required TResult Function(String source) reconnectTaskTimeout,
}) =>
    throw _privateConstructorUsedError;