BackgroundAxisRepeat enum

The background-repeat CSS property sets how background images are repeated.

Inheritance
Available extensions

Values

repeat → const BackgroundAxisRepeat

The image is repeated as much as needed to cover the whole background image painting area. The last image will be clipped if it doesn't fit.

const BackgroundAxisRepeat('repeat')
space → const BackgroundAxisRepeat

The image is repeated as much as possible without clipping. The first and last images are pinned to either side of the element, and whitespace is distributed evenly between the images. The background-position property is ignored unless only one image can be displayed without clipping. The only case where clipping happens using space is when there isn't enough room to display one image.

const BackgroundAxisRepeat('space')
round → const BackgroundAxisRepeat

As the allowed space increases in size, the repeated images will stretch (leaving no gaps) until there is room (space left >= half of the image width) for another one to be added. When the next image is added, all of the current ones compress to allow room. Example: An image with an original width of 260px, repeated three times, might stretch until each repetition is 300px wide, and then another image will be added. They will then compress to 225px.

const BackgroundAxisRepeat('round')
noRepeat → const BackgroundAxisRepeat

The image is not repeated (and hence the background image painting area will not necessarily be entirely covered). The position of the non-repeated background image is defined by the background-position CSS property.

const BackgroundAxisRepeat('no-repeat')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
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

Constants

values → const List<BackgroundAxisRepeat>
A constant List of the values in this enum, in order of their declaration.