ResizeMath class abstract final

EN: Resize math — builds a monotonic step table (max 4096 entries, always ends at maxPx) and binary-searches the largest step whose predicate fits. Mirrors ResizeMath in Kotlin.

PT: Matemática de redimensionamento — constrói uma tabela de passos monotônica (máx. 4096 entradas, sempre termina em maxPx) e busca binariamente o maior passo cujo predicado cabe. Espelha ResizeMath.

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

buildResizeStepsPx(double minPx, double maxPx, double stepPx) List<double>
Builds the ascending candidate table [minPx … maxPx] by stepPx.
findLargestFittingResizePx(List<double> sortedStepsPx, bool fits(double)) double
Binary search for the largest fitting step; 0.0 when nothing fits.
percentOfBoxToFactor(double percent) double
Converts a 0…100 percent into a 0…1 factor (clamped).
resolveAutoResizeMaxLines(int? maxLines) int
null | <= 0 | -1 all mean "unbounded".
resolveAutoResizeTextForMeasure(String text, int? maxLength) String
Truncates the measured text when maxLength is positive.

Constants

maxResizeSteps → const int