How an image should be inscribed into a box.

See also applyImageFit, which applies the sizing semantics of these values (though not the alignment semantics).

Constants

contain ImageFit

As large as possible while still containing the image entirely within the box.

const ImageFit(1)
cover ImageFit

As small as possible while still covering the entire box.

const ImageFit(2)
fill ImageFit

Fill the box by distorting the image's aspect ratio.

const ImageFit(0)
fitHeight ImageFit

Make sure the full height of the image is shown, regardless of whether this means the image overflows the box horizontally.

const ImageFit(4)
fitWidth ImageFit

Make sure the full width of the image is shown, regardless of whether this means the image overflows the box vertically.

const ImageFit(3)
none ImageFit

Center the image within the box and discard any portions of the image that lie outside the box.

const ImageFit(5)
scaleDown ImageFit

Center the image within the box and, if necessary, scale the image down to ensure that the image fits within the box.

const ImageFit(6)
values List<ImageFit>

A constant List of the values in this enum, in order of their declaration.

const List<ImageFit>

Properties

index int
read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited