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.
const
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
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

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