CssObjectFitDeclarations class
The object-fit and object-position declarations of one inline style.
Both fields are null when the corresponding property is absent or holds a
value this package does not render. isEmpty then reports that there is
nothing to do, and the extension leaves the element to flutter_html.
Constructors
- CssObjectFitDeclarations({CssObjectFit? fit, Alignment? position})
-
Creates a pair of declarations directly. Prefer
CssObjectFitDeclarations.fromInlineStyle.
const
- CssObjectFitDeclarations.fromInlineStyle(String styleAttribute)
-
Reads both properties out of an inline
style=""attribute.factory
Properties
- alignment → Alignment
-
The Alignment to paint with.
centeris the CSS initial value, and it is also Flutter's Image default.no setter - boxFit → BoxFit
-
The BoxFit to paint with.
fillis the CSS initial value.no setter - fit → CssObjectFit?
-
The
object-fitkeyword, or null if there is none to render.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether the inline style asked for nothing this package renders.
no setter
- position → Alignment?
-
The
object-positionvalue as an Alignment, or null if there is none to render.final - 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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited