BackgroundAxisRepeat enum
The background-repeat CSS property sets how background images are repeated. Per-axis values for the BackgroundRepeat property.
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 for another one to be added. This is the only
<repeat-style>value that can lead to the distortion of the background image's aspect ratio, which will occur if the aspect ratio of the background image differs from the aspect ratio of the background paint area.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
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.