copyWith method

PromptOptions copyWith({
  1. String? prompt,
  2. List<ImageOptions>? files,
  3. bool? stream,
})

Implementation

PromptOptions copyWith({
  String? prompt,
  List<ImageOptions>? files,
  bool? stream,
}) {
  return PromptOptions(
    prompt: prompt ?? this.prompt,
    files: files ?? this.files,
    stream: stream ?? this.stream,
  );
}