ImagePlacement class final

Where an inline image sits: its content-hash id, visible cell window, and original fit box. Bytes travel out-of-band (an InlineImageFrame), shipped once per id.

Constructors

ImagePlacement({required String id, required int col, required int row, required int cols, required int rows, InlineImageFit fit = InlineImageFit.contain, int? boxCols, int? boxRows, int boxOffsetCol = 0, int boxOffsetRow = 0})
const

Properties

boxCols → int
Size of the unclipped placement box that fit resolves against. Defaults to the visible size (an unclipped placement).
final
boxOffsetCol → int
Offset of the visible cols x rows window within the original box.
final
boxOffsetRow → int
final
boxRows → int
final
col → int
final
cols → int
final
fit → InlineImageFit
How the client's <img> fills the original boxCols x boxRows box (CSS object-fit) before the result is clipped to the visible window. Carried per placement so a wrong-aspect box doesn't stretch the image.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
row → int
final
rows → int
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.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited