ImageOptions class
Options to customize the image URL.
This class is used to customize the image URL when fetching images from Sanity. You can provide various parameter such as width, height, quality, devicePixelRatio, format, which will then be used to generate the image URL.
Constructors
Properties
- devicePixelRatio → int?
-
The device pixel ratio of the image.
final
- format → String?
-
The format of the image. Can be either
jpg
,png
,webp
, orauto
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
The height of the image in pixels.
final
- quality → int?
-
The quality of the image, expressed as value between 0-100
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int?
-
The width of the image in pixels.
final
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