maybeWhen<TResult extends Object?> method

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

Implementation

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