CssBackgroundPosition class sealed
CSS background-position property values.
- Implemented types
Constructors
- CssBackgroundPosition.global(CssGlobal global)
-
Global keyword (inherit, initial, unset, revert).
factory
-
CssBackgroundPosition.multiple(List<
CssBackgroundPosition> positions) -
Multiple background positions (comma-separated).
factory
-
CssBackgroundPosition.parts(List<
CssValue> values) -
Creates a position from one to four values (keywords or lengths).
factory
- CssBackgroundPosition.raw(String value)
-
Raw CSS value escape hatch.
factory
- CssBackgroundPosition.variable(String varName)
-
CSS variable reference.
factory
- CssBackgroundPosition.x(CssLength x)
-
Creates a position from x coordinate (y defaults to center).
factory
- CssBackgroundPosition.xy(CssLength x, CssLength y)
-
Creates a position from x and y coordinates.
factory
- CssBackgroundPosition.y(CssLength y)
-
Creates a position from y coordinate (x defaults to center).
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCss(
) → String -
Converts this value to its CSS string representation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- bottom → const CssBackgroundPosition
- bottomLeft → const CssBackgroundPosition
-
Bottom left position (
bottom left). - bottomRight → const CssBackgroundPosition
-
Bottom right position (
bottom right). - center → const CssBackgroundPosition
- left → const CssBackgroundPosition
- right → const CssBackgroundPosition
- top → const CssBackgroundPosition
- topLeft → const CssBackgroundPosition
-
Top left position (
top left). - topRight → const CssBackgroundPosition
-
Top right position (
top right).