Undefined

data object Undefined : Dimension

Represents an undefined pixel value.

E.g. given Size(400, Dimension.Undefined), the image should be loaded to fit/fill a width of 400 pixels irrespective of the image's height.

This value is typically used in cases where a dimension is unbounded (e.g. ViewGroup.LayoutParams.WRAP_CONTENT, Constraints.Infinity).

NOTE: If either dimension is Undefined, Options.scale is always Scale.FIT.