SizeService class

Viewport-level layout math for FolderView.

Per-row geometry and label-width measurement now live in RowMetrics; this holds only the viewport-scoped helpers — clamping the measured content width and computing total content height.

Constructors

SizeService()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

calculateContentHeight({required int itemCount, double rowHeight = 40.0, double rowSpacing = 0.0, double topPadding = 0.0, double bottomPadding = 0.0}) double
Calculate the total content height from a flat item count.
clampContentWidth({required double contentWidth, required double viewportWidth}) double
Clamps a measured contentWidth to a sane ceiling of 3× the viewport.