ImageMode class

Whether images.generate synthesizes from scratch or repaints a region.

DiffusionMode (the wire enum) was deleted outright (idl/diffusion_options.proto): "Mode is inferred, never declared: no image = text-to-image, image = image-to-image, image + mask_image = inpainting." This class keeps the same public shape and lets toProto infer the wire mode from whether input/mask are present.

Constructors

ImageMode.inpaint(ImageInput input, ImageInput mask)
Repaint the masked region of input.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
input ImageInput?
Base image for inpainting.
final
mask ImageInput?
Mask marking the region to repaint.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

generate → const ImageMode
Synthesize a new image from the prompt alone.