maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult mode(
    1. RunObjectToolChoiceMode value
    )?,
  2. TResult tool(
    1. AssistantsNamedToolChoice value
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(RunObjectToolChoiceMode value)? mode,
  TResult Function(AssistantsNamedToolChoice value)? tool,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;