whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? mode(
    1. ChatCompletionFunctionCallMode value
    )?,
  2. TResult? function(
    1. ChatCompletionFunctionCallOption value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(ChatCompletionFunctionCallMode value)? mode,
  TResult? Function(ChatCompletionFunctionCallOption value)? function,
}) =>
    throw _privateConstructorUsedError;