DiffusionGenerationOptions constructor

DiffusionGenerationOptions({
  1. String? prompt,
  2. String? negativePrompt,
  3. int? width,
  4. int? height,
  5. int? steps,
  6. double? guidanceScale,
  7. Int64? seed,
  8. DiffusionScheduler? scheduler,
  9. List<int>? image,
  10. List<int>? maskImage,
  11. double? strength,
  12. String? imageMediaType,
  13. String? maskImageMediaType,
  14. int? n,
  15. DiffusionOutputFormat? outputFormat,
})

Implementation

factory DiffusionGenerationOptions({
  $core.String? prompt,
  $core.String? negativePrompt,
  $core.int? width,
  $core.int? height,
  $core.int? steps,
  $core.double? guidanceScale,
  $fixnum.Int64? seed,
  DiffusionScheduler? scheduler,
  $core.List<$core.int>? image,
  $core.List<$core.int>? maskImage,
  $core.double? strength,
  $core.String? imageMediaType,
  $core.String? maskImageMediaType,
  $core.int? n,
  DiffusionOutputFormat? outputFormat,
}) {
  final result = create();
  if (prompt != null) result.prompt = prompt;
  if (negativePrompt != null) result.negativePrompt = negativePrompt;
  if (width != null) result.width = width;
  if (height != null) result.height = height;
  if (steps != null) result.steps = steps;
  if (guidanceScale != null) result.guidanceScale = guidanceScale;
  if (seed != null) result.seed = seed;
  if (scheduler != null) result.scheduler = scheduler;
  if (image != null) result.image = image;
  if (maskImage != null) result.maskImage = maskImage;
  if (strength != null) result.strength = strength;
  if (imageMediaType != null) result.imageMediaType = imageMediaType;
  if (maskImageMediaType != null)
    result.maskImageMediaType = maskImageMediaType;
  if (n != null) result.n = n;
  if (outputFormat != null) result.outputFormat = outputFormat;
  return result;
}