getWidthMin method

double getWidthMin(
  1. double value,
  2. double min
)

Get cached width with min constraint or calculate and cache

Implementation

double getWidthMin(double value, double min) {
  final key = CacheKey(
    value: Object.hash(value, min),
    scaleType: ScaleType.widthMin,
    contextKey: _getContextKey(),
  );

  return _putWithEviction(
    _widthMinCache,
    key,
    () => SKScaledValueTracker.mark(
      getWidth(value).clamp(min, double.infinity),
      ScaleType.widthMin,
    ),
  );
}