BackgroundPosition class
The background-position CSS property sets the initial position for each
background image. The position is relative to the box established by
background-origin.
Read more: MDN background-position
Constructors
- BackgroundPosition({BackgroundAlignX? alignX, BackgroundAlignY? alignY, Unit? offsetX, Unit? offsetY})
-
Construct a background position from optional alignments and offsets.
constfactory
Properties
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
- center → const BackgroundPosition
-
A shorthand for the centered background position (
center). - inherit → const BackgroundPosition
- initial → const BackgroundPosition
- revert → const BackgroundPosition
- revertLayer → const BackgroundPosition
- unset → const BackgroundPosition