InlineImageFit enum
How an inline image fills its placement rectangle on a true-pixel
surface. The four modes mirror the widget-level ImageFit, and — by
design — their names are exactly the CSS object-fit keywords, so the
serve client applies el.style.objectFit = fit.name with no lookup
table. contain (the default) preserves the source aspect ratio;
without it a wrong-aspect cell box would stretch the image.
Values
- contain → const InlineImageFit
- cover → const InlineImageFit
- fill → const InlineImageFit
- none → const InlineImageFit
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
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<
InlineImageFit> - A constant List of the values in this enum, in order of their declaration.